diff --git a/Assets/Shared/Prefabs/UI/AssetNotListedObject.prefab b/Assets/Shared/Prefabs/UI/AssetNotListedObject.prefab deleted file mode 100644 index 94f3a016..00000000 --- a/Assets/Shared/Prefabs/UI/AssetNotListedObject.prefab +++ /dev/null @@ -1,767 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &145533122687552625 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 981529999325822285} - m_Layer: 5 - m_Name: ProgressContainer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &981529999325822285 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 145533122687552625} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 4550433613436006399} - m_Father: {fileID: 3581655820354171537} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: -2} - m_SizeDelta: {x: 160, y: 60} - m_Pivot: {x: 0, y: 1} ---- !u!1 &2463487558838386183 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 3581655820354171537} - - component: {fileID: 6772853731133429995} - - component: {fileID: 3083281842116404416} - m_Layer: 5 - m_Name: Actions - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &3581655820354171537 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2463487558838386183} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 981529999325822285} - - {fileID: 6381905700837026071} - m_Father: {fileID: 4440215232704856282} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 64} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &6772853731133429995 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2463487558838386183} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 5 - m_Spacing: 16 - m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 0 - m_ChildControlWidth: 0 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &3083281842116404416 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2463487558838386183} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: 1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!1 &2907070573568759799 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4550433613436006399} - - component: {fileID: 681077985398010663} - - component: {fileID: 4309068396944229425} - - component: {fileID: 8950966741208386040} - m_Layer: 5 - m_Name: Progress - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &4550433613436006399 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2907070573568759799} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 981529999325822285} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 60, y: 60} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &681077985398010663 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2907070573568759799} - m_CullTransparentMesh: 1 ---- !u!114 &4309068396944229425 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2907070573568759799} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0.8993242, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 21300000, guid: d996726272fce3d40bbfa94eb0002f37, type: 3} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &8950966741208386040 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2907070573568759799} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 8e87260d76d19f54ead2127c850339d8, type: 3} - m_Name: - m_EditorClassIdentifier: - rt: {fileID: 4550433613436006399} ---- !u!1 &2910761123095850727 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4440215232704856282} - - component: {fileID: 5834689071297027072} - - component: {fileID: 8188193036358060276} - - component: {fileID: 8695517657532629572} - - component: {fileID: 6186255925442925247} - - component: {fileID: 7634590879646420912} - m_Layer: 5 - m_Name: AssetNotListedObject - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &4440215232704856282 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2910761123095850727} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2838428771016816845} - - {fileID: 3581655820354171537} - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 1} - m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 62.350037, y: -270} - m_SizeDelta: {x: 0, y: 96} - m_Pivot: {x: 1, y: 0.5} ---- !u!222 &5834689071297027072 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2910761123095850727} - m_CullTransparentMesh: 1 ---- !u!114 &8188193036358060276 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2910761123095850727} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &8695517657532629572 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2910761123095850727} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 32 - m_Right: 32 - m_Top: 16 - m_Bottom: 16 - m_ChildAlignment: 3 - m_Spacing: 16 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 1 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &6186255925442925247 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2910761123095850727} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 2 - m_VerticalFit: 0 ---- !u!114 &7634590879646420912 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2910761123095850727} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: cac47b041ba4a47daa1ef34ec139efbd, type: 3} - m_Name: - m_EditorClassIdentifier: - m_TokenIdText: {fileID: 5321908480584742034} - m_SellButton: {fileID: 3141814675650749909} - m_Progress: {fileID: 145533122687552625} ---- !u!1 &5537380516833652788 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2838428771016816845} - - component: {fileID: 8521344932960721048} - - component: {fileID: 5321908480584742034} - - component: {fileID: 974118003710366801} - - component: {fileID: 5000140362860202381} - m_Layer: 5 - m_Name: TokenId - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2838428771016816845 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5537380516833652788} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 4440215232704856282} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 32, y: -48} - m_SizeDelta: {x: 0, y: 40} - m_Pivot: {x: 0, y: 0.5} ---- !u!222 &8521344932960721048 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5537380516833652788} - m_CullTransparentMesh: 1 ---- !u!114 &5321908480584742034 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5537380516833652788} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_text: - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4294967295 - m_fontColor: {r: 1, g: 1, b: 1, a: 1} - m_enableVertexGradient: 0 - m_colorMode: 3 - m_fontColorGradient: - topLeft: {r: 1, g: 1, b: 1, a: 1} - topRight: {r: 1, g: 1, b: 1, a: 1} - bottomLeft: {r: 1, g: 1, b: 1, a: 1} - bottomRight: {r: 1, g: 1, b: 1, a: 1} - m_fontColorGradientPreset: {fileID: 0} - m_spriteAsset: {fileID: 0} - m_tintAllSprites: 0 - m_StyleSheet: {fileID: 0} - m_TextStyleHashCode: -1183493901 - m_overrideHtmlColors: 0 - m_faceColor: - serializedVersion: 2 - rgba: 4294967295 - m_fontSize: 24 - m_fontSizeBase: 24 - m_fontWeight: 400 - m_enableAutoSizing: 0 - m_fontSizeMin: 18 - m_fontSizeMax: 72 - m_fontStyle: 0 - m_HorizontalAlignment: 1 - m_VerticalAlignment: 512 - m_textAlignment: 65535 - m_characterSpacing: 0 - m_wordSpacing: 0 - m_lineSpacing: 0 - m_lineSpacingMax: 0 - m_paragraphSpacing: 0 - m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 - m_wordWrappingRatios: 0.4 - m_overflowMode: 0 - m_linkedTextComponent: {fileID: 0} - parentLinkedComponent: {fileID: 0} - m_enableKerning: 1 - m_enableExtraPadding: 0 - checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!114 &974118003710366801 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5537380516833652788} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 0 - m_VerticalFit: 0 ---- !u!114 &5000140362860202381 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5537380516833652788} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: 1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!1001 &2408484005495080423 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 3581655820354171537} - m_Modifications: - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_Pivot.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_Pivot.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_RootOrder - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchorMax.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchorMin.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_SizeDelta.x - value: 160 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_SizeDelta.y - value: 64 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207153, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_Name - value: Sell - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207153, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_IsActive - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207166, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_Sprite - value: - objectReference: {fileID: 21300000, guid: 22ca513fe0764454e9fdc5e507d04ed0, - type: 3} - - target: {fileID: 8790377886039207166, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_Material - value: - objectReference: {fileID: 0} - - target: {fileID: 8790377886068313458, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_text - value: Sell - objectReference: {fileID: 0} - - target: {fileID: 8790377886068313458, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_fontSize - value: 24 - objectReference: {fileID: 0} - - target: {fileID: 8790377886068313458, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_fontStyle - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8790377886068313458, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_fontColor.b - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886068313458, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_fontColor.g - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886068313458, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_fontColor.r - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886068313458, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_fontSizeBase - value: 24 - objectReference: {fileID: 0} - - target: {fileID: 8790377886068313458, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_fontColor32.rgba - value: 4278190080 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} ---- !u!114 &3141814675650749909 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 789626078443020338, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - m_PrefabInstance: {fileID: 2408484005495080423} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6381905700837026070} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b5e87ca911816437f846b3f0d738b485, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &6381905700837026070 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 8790377886039207153, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - m_PrefabInstance: {fileID: 2408484005495080423} - m_PrefabAsset: {fileID: 0} ---- !u!114 &8066998006670684157 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6381905700837026070} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!114 &8217069565229727687 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6381905700837026070} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3} - m_Name: - m_EditorClassIdentifier: - radius: 32 - image: {fileID: 6381905700837026073} ---- !u!224 &6381905700837026071 stripped -RectTransform: - m_CorrespondingSourceObject: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - m_PrefabInstance: {fileID: 2408484005495080423} - m_PrefabAsset: {fileID: 0} ---- !u!114 &6381905700837026073 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 8790377886039207166, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - m_PrefabInstance: {fileID: 2408484005495080423} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6381905700837026070} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/Assets/Shared/Prefabs/UI/AssetNotListedObject.prefab.meta b/Assets/Shared/Prefabs/UI/AssetNotListedObject.prefab.meta deleted file mode 100644 index a144cb1c..00000000 --- a/Assets/Shared/Prefabs/UI/AssetNotListedObject.prefab.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 074c32efeeb1d454b8681a4c28a2f1dc -PrefabImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Shared/Prefabs/UI/AssetDetailsView.prefab b/Assets/Shared/Prefabs/UI/InventoryAssetDetailsView.prefab similarity index 67% rename from Assets/Shared/Prefabs/UI/AssetDetailsView.prefab rename to Assets/Shared/Prefabs/UI/InventoryAssetDetailsView.prefab index 7854986e..cf629458 100644 --- a/Assets/Shared/Prefabs/UI/AssetDetailsView.prefab +++ b/Assets/Shared/Prefabs/UI/InventoryAssetDetailsView.prefab @@ -40,8 +40,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 486, y: 0} - m_SizeDelta: {x: 972, y: 0} + m_AnchoredPosition: {x: 266, y: 0} + m_SizeDelta: {x: 532, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &3352626542042760297 MonoBehaviour: @@ -343,8 +343,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 828, y: 0} - m_SizeDelta: {x: 1592, y: 0} + m_AnchoredPosition: {x: 608, y: 0} + m_SizeDelta: {x: 1152, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &252963699134835464 MonoBehaviour: @@ -427,8 +427,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 486, y: 0} - m_SizeDelta: {x: 972, y: 0} + m_AnchoredPosition: {x: 266, y: 0} + m_SizeDelta: {x: 532, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &5193090064696615538 MonoBehaviour: @@ -522,43 +522,6 @@ MonoBehaviour: m_EditorClassIdentifier: m_HorizontalFit: 0 m_VerticalFit: 1 ---- !u!1 &707448012123073057 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6878434328920135870} - m_Layer: 5 - m_Name: Sliding Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &6878434328920135870 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 707448012123073057} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 7065498185851056957} - m_Father: {fileID: 3188313354869154749} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &749922319627830519 GameObject: m_ObjectHideFlags: 0 @@ -599,8 +562,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 486, y: 0} - m_SizeDelta: {x: 972, y: 0} + m_AnchoredPosition: {x: 266, y: 0} + m_SizeDelta: {x: 532, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &8160481178246513353 MonoBehaviour: @@ -694,43 +657,6 @@ MonoBehaviour: m_EditorClassIdentifier: m_HorizontalFit: 0 m_VerticalFit: 1 ---- !u!1 &955876110584361537 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 228051022144817607} - m_Layer: 5 - m_Name: Sliding Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &228051022144817607 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 955876110584361537} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 6695690001535037887} - m_Father: {fileID: 2416474379553470136} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1048792326114649233 GameObject: m_ObjectHideFlags: 0 @@ -853,87 +779,11 @@ MonoBehaviour: m_HandleRect: {fileID: 2602276242752267194} m_Direction: 2 m_Value: 1 - m_Size: 0.85312694 + m_Size: 0.5004318 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: m_Calls: [] ---- !u!1 &1391321394621685728 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 3590656101560901416} - - component: {fileID: 2355713886324759077} - - component: {fileID: 9152401613822625041} - m_Layer: 5 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &3590656101560901416 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1391321394621685728} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 4601279685342925547} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.056666672} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &2355713886324759077 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1391321394621685728} - m_CullTransparentMesh: 1 ---- !u!114 &9152401613822625041 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1391321394621685728} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.13333334, g: 0.13333334, b: 0.13333334, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 --- !u!1 &1648616776650737964 GameObject: m_ObjectHideFlags: 0 @@ -1395,85 +1245,6 @@ MonoBehaviour: m_EditorClassIdentifier: m_HorizontalFit: 2 m_VerticalFit: 0 ---- !u!1 &1858325117805022117 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 3035158559882944977} - - component: {fileID: 2067078360441504036} - - component: {fileID: 7647007296564871238} - m_Layer: 5 - m_Name: EmptyListingContainer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &3035158559882944977 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1858325117805022117} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 6917705482908285452} - m_Father: {fileID: 8611774517390306429} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 312.25, y: -36} - m_SizeDelta: {x: 624.5, y: 72} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &2067078360441504036 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1858325117805022117} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 16 - m_Bottom: 16 - m_ChildAlignment: 4 - m_Spacing: 0 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 0 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &7647007296564871238 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1858325117805022117} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 0 - m_VerticalFit: 1 --- !u!1 &1871281070000115819 GameObject: m_ObjectHideFlags: 0 @@ -1868,7 +1639,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_HorizontalFit: 2 m_VerticalFit: 0 ---- !u!1 &2166095100318274606 +--- !u!1 &2531920449074768718 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1876,282 +1647,59 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 6898932858357690874} - - component: {fileID: 1000827914876034073} - - component: {fileID: 3134825784758171162} - - component: {fileID: 2697922043435330222} + - component: {fileID: 6905405957053067275} + - component: {fileID: 1629158853364963998} + - component: {fileID: 674721262008761761} + - component: {fileID: 7548656009941987852} m_Layer: 5 - m_Name: Listings + m_Name: AttributesTitle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &6898932858357690874 +--- !u!224 &6905405957053067275 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2166095100318274606} + m_GameObject: {fileID: 2531920449074768718} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2594161896175068020} - - {fileID: 2416474379553470136} - - {fileID: 3188313354869154749} - m_Father: {fileID: 8323929328015196559} - m_RootOrder: 1 + m_Children: [] + m_Father: {fileID: 1088868648234050662} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 962.25, y: -150} - m_SizeDelta: {x: 641.5, y: 300} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 74.354996, y: 0} + m_SizeDelta: {x: 0, y: 40} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &1000827914876034073 +--- !u!222 &1629158853364963998 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2166095100318274606} + m_GameObject: {fileID: 2531920449074768718} m_CullTransparentMesh: 1 ---- !u!114 &3134825784758171162 +--- !u!114 &674721262008761761 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2166095100318274606} - m_Enabled: 0 + m_GameObject: {fileID: 2531920449074768718} + m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.392} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &2697922043435330222 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2166095100318274606} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Content: {fileID: 6754453409763373254} - m_Horizontal: 1 - m_Vertical: 1 - m_MovementType: 1 - m_Elasticity: 0.1 - m_Inertia: 1 - m_DecelerationRate: 0.135 - m_ScrollSensitivity: 1 - m_Viewport: {fileID: 2594161896175068020} - m_HorizontalScrollbar: {fileID: 5434613235974104349} - m_VerticalScrollbar: {fileID: 628963256592243687} - m_HorizontalScrollbarVisibility: 2 - m_VerticalScrollbarVisibility: 2 - m_HorizontalScrollbarSpacing: -3 - m_VerticalScrollbarSpacing: -3 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!1 &2293631141321448580 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6754453409763373254} - m_Layer: 5 - m_Name: Content - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &6754453409763373254 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2293631141321448580} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 8611774517390306429} - m_Father: {fileID: 2594161896175068020} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 300} - m_Pivot: {x: 0, y: 1} ---- !u!1 &2418626920176660911 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 7065498185851056957} - - component: {fileID: 9000419912806691523} - - component: {fileID: 8915607250419549599} - m_Layer: 5 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &7065498185851056957 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2418626920176660911} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 6878434328920135870} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0.056666672} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &9000419912806691523 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2418626920176660911} - m_CullTransparentMesh: 1 ---- !u!114 &8915607250419549599 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2418626920176660911} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.13333334, g: 0.13333334, b: 0.13333334, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!1 &2531920449074768718 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6905405957053067275} - - component: {fileID: 1629158853364963998} - - component: {fileID: 674721262008761761} - - component: {fileID: 7548656009941987852} - m_Layer: 5 - m_Name: AttributesTitle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &6905405957053067275 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2531920449074768718} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1088868648234050662} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 74.354996, y: 0} - m_SizeDelta: {x: 0, y: 40} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &1629158853364963998 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2531920449074768718} - m_CullTransparentMesh: 1 ---- !u!114 &674721262008761761 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2531920449074768718} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -2823,8 +2371,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 486, y: 0} - m_SizeDelta: {x: 972, y: 0} + m_AnchoredPosition: {x: 266, y: 0} + m_SizeDelta: {x: 532, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6037295063887235274 MonoBehaviour: @@ -2955,7 +2503,7 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: -20, y: -20} m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &4209010517467697866 +--- !u!1 &5101902472237630457 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2963,52 +2511,128 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 2689677033144375975} - - component: {fileID: 2902180969382040631} - - component: {fileID: 2430127127445348557} - - component: {fileID: 3902944074270910146} + - component: {fileID: 2602276242752267194} + - component: {fileID: 4179990617898005856} + - component: {fileID: 4986908211239487415} m_Layer: 5 - m_Name: EmptyNotListed + m_Name: Handle m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &2689677033144375975 +--- !u!224 &2602276242752267194 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4209010517467697866} + m_GameObject: {fileID: 5101902472237630457} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 6151446294135569783} + m_Father: {fileID: 768638068607325464} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 312.25, y: -36} - m_SizeDelta: {x: 323.76, y: 40} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &4179990617898005856 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5101902472237630457} + m_CullTransparentMesh: 1 +--- !u!114 &4986908211239487415 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5101902472237630457} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.13333334, g: 0.13333334, b: 0.13333334, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!1 &5222698603964259147 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4426985754904086874} + - component: {fileID: 6675679212783121283} + - component: {fileID: 3731552220700385987} + - component: {fileID: 2720743547889664839} + m_Layer: 5 + m_Name: Contract Type + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &4426985754904086874 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5222698603964259147} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 8940481846266048592} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 87.305, y: 0} + m_SizeDelta: {x: 0, y: 40} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &2902180969382040631 +--- !u!222 &6675679212783121283 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4209010517467697866} + m_GameObject: {fileID: 5222698603964259147} m_CullTransparentMesh: 1 ---- !u!114 &2430127127445348557 +--- !u!114 &3731552220700385987 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4209010517467697866} + m_GameObject: {fileID: 5222698603964259147} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} @@ -3022,7 +2646,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: You don't have anything to sell + m_text: Contract type m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -3056,7 +2680,7 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_HorizontalAlignment: 2 + m_HorizontalAlignment: 1 m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 @@ -3091,13 +2715,13 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!114 &3902944074270910146 +--- !u!114 &2720743547889664839 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4209010517467697866} + m_GameObject: {fileID: 5222698603964259147} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} @@ -3105,7 +2729,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_HorizontalFit: 2 m_VerticalFit: 0 ---- !u!1 &4661950804044942695 +--- !u!1 &5346749973347251154 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3113,141 +2737,116 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 4321183276467806256} - - component: {fileID: 5747224496463944592} - - component: {fileID: 4049058133401959101} - - component: {fileID: 8443892034112265906} + - component: {fileID: 8358955473714987148} + - component: {fileID: 7580228993619882828} + - component: {fileID: 6046904525841126385} + - component: {fileID: 2823423808506140996} + - component: {fileID: 2364620168419014579} m_Layer: 5 - m_Name: Listings + m_Name: Scroll View m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &4321183276467806256 +--- !u!224 &8358955473714987148 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4661950804044942695} + m_GameObject: {fileID: 5346749973347251154} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 619698540636144971} + m_Children: + - {fileID: 3568366139250381339} + - {fileID: 5201747520396966631} + - {fileID: 4572433871481564286} + m_Father: {fileID: 8076725810066309279} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 966.37, y: -20} - m_SizeDelta: {x: 633.26, y: 40} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &5747224496463944592 +--- !u!222 &7580228993619882828 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4661950804044942695} + m_GameObject: {fileID: 5346749973347251154} m_CullTransparentMesh: 1 ---- !u!114 &4049058133401959101 +--- !u!114 &6046904525841126385 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4661950804044942695} - m_Enabled: 1 + m_GameObject: {fileID: 5346749973347251154} + m_Enabled: 0 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Color: {r: 0, g: 0, b: 0, a: 0.392} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: For sale - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4294967295 - m_fontColor: {r: 1, g: 1, b: 1, a: 1} - m_enableVertexGradient: 0 - m_colorMode: 3 - m_fontColorGradient: - topLeft: {r: 1, g: 1, b: 1, a: 1} - topRight: {r: 1, g: 1, b: 1, a: 1} - bottomLeft: {r: 1, g: 1, b: 1, a: 1} - bottomRight: {r: 1, g: 1, b: 1, a: 1} - m_fontColorGradientPreset: {fileID: 0} - m_spriteAsset: {fileID: 0} - m_tintAllSprites: 0 - m_StyleSheet: {fileID: 0} - m_TextStyleHashCode: -1183493901 - m_overrideHtmlColors: 0 - m_faceColor: - serializedVersion: 2 - rgba: 4294967295 - m_fontSize: 24 - m_fontSizeBase: 24 - m_fontWeight: 400 - m_enableAutoSizing: 0 - m_fontSizeMin: 18 - m_fontSizeMax: 72 - m_fontStyle: 1 - m_HorizontalAlignment: 2 - m_VerticalAlignment: 512 - m_textAlignment: 65535 - m_characterSpacing: 0 - m_wordSpacing: 0 - m_lineSpacing: 0 - m_lineSpacingMax: 0 - m_paragraphSpacing: 0 - m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 - m_wordWrappingRatios: 0.4 - m_overflowMode: 0 - m_linkedTextComponent: {fileID: 0} - parentLinkedComponent: {fileID: 0} - m_enableKerning: 1 - m_enableExtraPadding: 0 - checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!114 &8443892034112265906 + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &2823423808506140996 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5346749973347251154} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Content: {fileID: 4559103411365147038} + m_Horizontal: 1 + m_Vertical: 1 + m_MovementType: 1 + m_Elasticity: 0.1 + m_Inertia: 1 + m_DecelerationRate: 0.135 + m_ScrollSensitivity: 1 + m_Viewport: {fileID: 3568366139250381339} + m_HorizontalScrollbar: {fileID: 6274247523209718665} + m_VerticalScrollbar: {fileID: 2033991298576167431} + m_HorizontalScrollbarVisibility: 2 + m_VerticalScrollbarVisibility: 2 + m_HorizontalScrollbarSpacing: -3 + m_VerticalScrollbarSpacing: -3 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &2364620168419014579 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4661950804044942695} + m_GameObject: {fileID: 5346749973347251154} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} @@ -3258,10 +2857,10 @@ MonoBehaviour: m_MinHeight: -1 m_PreferredWidth: -1 m_PreferredHeight: -1 - m_FlexibleWidth: 1 - m_FlexibleHeight: -1 + m_FlexibleWidth: -1 + m_FlexibleHeight: 1 m_LayoutPriority: 1 ---- !u!1 &4676351857651094832 +--- !u!1 &5400489131256534159 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3269,1539 +2868,134 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 3661139419109309395} - - component: {fileID: 1788461302143304619} - - component: {fileID: 7319506731758443989} - - component: {fileID: 1713336144922011679} + - component: {fileID: 1111946218754815195} + - component: {fileID: 806595924551922813} + - component: {fileID: 3803887674554022657} + - component: {fileID: 2316205957433088878} + - component: {fileID: 261797329024187214} + - component: {fileID: 1804761720200912732} + - component: {fileID: 7477962037737087719} m_Layer: 5 - m_Name: NotListed + m_Name: Right m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &3661139419109309395 +--- !u!224 &1111946218754815195 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4676351857651094832} + m_GameObject: {fileID: 5400489131256534159} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 619698540636144971} - m_RootOrder: 0 + m_Children: + - {fileID: 8739084464915515665} + - {fileID: 7574807222904802813} + - {fileID: 6223141631850656058} + - {fileID: 8791777657898941907} + - {fileID: 1088868648234050662} + - {fileID: 8940481846266048592} + m_Father: {fileID: 1607845471621885664} + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 324.87, y: -20} - m_SizeDelta: {x: 649.74, y: 40} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 886, y: 0} + m_SizeDelta: {x: 532, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &1788461302143304619 -CanvasRenderer: +--- !u!223 &806595924551922813 +Canvas: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4676351857651094832} - m_CullTransparentMesh: 1 ---- !u!114 &7319506731758443989 + m_GameObject: {fileID: 5400489131256534159} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 2 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 25 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!114 &3803887674554022657 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4676351857651094832} + m_GameObject: {fileID: 5400489131256534159} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_text: Not listed - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4294967295 - m_fontColor: {r: 1, g: 1, b: 1, a: 1} - m_enableVertexGradient: 0 - m_colorMode: 3 - m_fontColorGradient: - topLeft: {r: 1, g: 1, b: 1, a: 1} - topRight: {r: 1, g: 1, b: 1, a: 1} - bottomLeft: {r: 1, g: 1, b: 1, a: 1} - bottomRight: {r: 1, g: 1, b: 1, a: 1} - m_fontColorGradientPreset: {fileID: 0} - m_spriteAsset: {fileID: 0} - m_tintAllSprites: 0 - m_StyleSheet: {fileID: 0} - m_TextStyleHashCode: -1183493901 - m_overrideHtmlColors: 0 - m_faceColor: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!114 &2316205957433088878 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5400489131256534159} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: serializedVersion: 2 - rgba: 4294967295 - m_fontSize: 24 - m_fontSizeBase: 24 - m_fontWeight: 400 - m_enableAutoSizing: 0 - m_fontSizeMin: 18 - m_fontSizeMax: 72 - m_fontStyle: 1 - m_HorizontalAlignment: 2 - m_VerticalAlignment: 512 - m_textAlignment: 65535 - m_characterSpacing: 0 - m_wordSpacing: 0 - m_lineSpacing: 0 - m_lineSpacingMax: 0 - m_paragraphSpacing: 0 - m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 - m_wordWrappingRatios: 0.4 - m_overflowMode: 0 - m_linkedTextComponent: {fileID: 0} - parentLinkedComponent: {fileID: 0} - m_enableKerning: 1 - m_enableExtraPadding: 0 - checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!114 &1713336144922011679 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4676351857651094832} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: 1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!1 &4940597919047493391 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2594161896175068020} - - component: {fileID: 5130516631666090503} - - component: {fileID: 473479127213778084} - - component: {fileID: 3404806635817214637} - m_Layer: 5 - m_Name: Viewport - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2594161896175068020 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4940597919047493391} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 6754453409763373254} - m_Father: {fileID: 6898932858357690874} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -17, y: -17} - m_Pivot: {x: 0, y: 1} ---- !u!222 &5130516631666090503 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4940597919047493391} - m_CullTransparentMesh: 1 ---- !u!114 &473479127213778084 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4940597919047493391} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &3404806635817214637 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4940597919047493391} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} - m_Name: - m_EditorClassIdentifier: - m_ShowMaskGraphic: 0 ---- !u!1 &4992875109677053023 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 3188313354869154749} - - component: {fileID: 201141987857225688} - - component: {fileID: 3071399748531028713} - - component: {fileID: 628963256592243687} - m_Layer: 5 - m_Name: Scrollbar Vertical - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &3188313354869154749 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4992875109677053023} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 6878434328920135870} - m_Father: {fileID: 6898932858357690874} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: -17} - m_Pivot: {x: 1, y: 1} ---- !u!222 &201141987857225688 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4992875109677053023} - m_CullTransparentMesh: 1 ---- !u!114 &3071399748531028713 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4992875109677053023} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.08627451, g: 0.08627451, b: 0.08627451, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &628963256592243687 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4992875109677053023} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 8915607250419549599} - m_HandleRect: {fileID: 7065498185851056957} - m_Direction: 2 - m_Value: 1 - m_Size: 0.9433333 - m_NumberOfSteps: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!1 &5101902472237630457 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2602276242752267194} - - component: {fileID: 4179990617898005856} - - component: {fileID: 4986908211239487415} - m_Layer: 5 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2602276242752267194 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5101902472237630457} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 768638068607325464} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &4179990617898005856 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5101902472237630457} - m_CullTransparentMesh: 1 ---- !u!114 &4986908211239487415 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5101902472237630457} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.13333334, g: 0.13333334, b: 0.13333334, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!1 &5222698603964259147 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4426985754904086874} - - component: {fileID: 6675679212783121283} - - component: {fileID: 3731552220700385987} - - component: {fileID: 2720743547889664839} - m_Layer: 5 - m_Name: Contract Type - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &4426985754904086874 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5222698603964259147} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 8940481846266048592} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 87.305, y: 0} - m_SizeDelta: {x: 0, y: 40} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &6675679212783121283 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5222698603964259147} - m_CullTransparentMesh: 1 ---- !u!114 &3731552220700385987 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5222698603964259147} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_text: Contract type - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4294967295 - m_fontColor: {r: 1, g: 1, b: 1, a: 1} - m_enableVertexGradient: 0 - m_colorMode: 3 - m_fontColorGradient: - topLeft: {r: 1, g: 1, b: 1, a: 1} - topRight: {r: 1, g: 1, b: 1, a: 1} - bottomLeft: {r: 1, g: 1, b: 1, a: 1} - bottomRight: {r: 1, g: 1, b: 1, a: 1} - m_fontColorGradientPreset: {fileID: 0} - m_spriteAsset: {fileID: 0} - m_tintAllSprites: 0 - m_StyleSheet: {fileID: 0} - m_TextStyleHashCode: -1183493901 - m_overrideHtmlColors: 0 - m_faceColor: - serializedVersion: 2 - rgba: 4294967295 - m_fontSize: 24 - m_fontSizeBase: 24 - m_fontWeight: 400 - m_enableAutoSizing: 0 - m_fontSizeMin: 18 - m_fontSizeMax: 72 - m_fontStyle: 0 - m_HorizontalAlignment: 1 - m_VerticalAlignment: 512 - m_textAlignment: 65535 - m_characterSpacing: 0 - m_wordSpacing: 0 - m_lineSpacing: 0 - m_lineSpacingMax: 0 - m_paragraphSpacing: 0 - m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 - m_wordWrappingRatios: 0.4 - m_overflowMode: 0 - m_linkedTextComponent: {fileID: 0} - parentLinkedComponent: {fileID: 0} - m_enableKerning: 1 - m_enableExtraPadding: 0 - checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!114 &2720743547889664839 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5222698603964259147} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 2 - m_VerticalFit: 0 ---- !u!1 &5346749973347251154 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 8358955473714987148} - - component: {fileID: 7580228993619882828} - - component: {fileID: 6046904525841126385} - - component: {fileID: 2823423808506140996} - - component: {fileID: 2364620168419014579} - m_Layer: 5 - m_Name: Scroll View - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &8358955473714987148 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5346749973347251154} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 3568366139250381339} - - {fileID: 5201747520396966631} - - {fileID: 4572433871481564286} - m_Father: {fileID: 8076725810066309279} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &7580228993619882828 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5346749973347251154} - m_CullTransparentMesh: 1 ---- !u!114 &6046904525841126385 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5346749973347251154} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0, g: 0, b: 0, a: 0.392} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &2823423808506140996 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5346749973347251154} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Content: {fileID: 4559103411365147038} - m_Horizontal: 1 - m_Vertical: 1 - m_MovementType: 1 - m_Elasticity: 0.1 - m_Inertia: 1 - m_DecelerationRate: 0.135 - m_ScrollSensitivity: 1 - m_Viewport: {fileID: 3568366139250381339} - m_HorizontalScrollbar: {fileID: 6274247523209718665} - m_VerticalScrollbar: {fileID: 2033991298576167431} - m_HorizontalScrollbarVisibility: 2 - m_VerticalScrollbarVisibility: 2 - m_HorizontalScrollbarSpacing: -3 - m_VerticalScrollbarSpacing: -3 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &2364620168419014579 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5346749973347251154} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: -1 - m_FlexibleHeight: 1 - m_LayoutPriority: 1 ---- !u!1 &5359280762304187081 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 7511881637065001384} - - component: {fileID: 2957733598775645027} - - component: {fileID: 2012486672664941675} - - component: {fileID: 2432997396041558253} - m_Layer: 5 - m_Name: Scrollbar Horizontal - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &7511881637065001384 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5359280762304187081} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1331954448889498017} - m_Father: {fileID: 6373521067095767262} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -17, y: 20} - m_Pivot: {x: 0, y: 0} ---- !u!222 &2957733598775645027 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5359280762304187081} - m_CullTransparentMesh: 1 ---- !u!114 &2012486672664941675 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5359280762304187081} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.08627451, g: 0.08627451, b: 0.08627451, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &2432997396041558253 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5359280762304187081} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 4649668600924569832} - m_HandleRect: {fileID: 1588156408419140343} - m_Direction: 0 - m_Value: 0 - m_Size: 1 - m_NumberOfSteps: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!1 &5400489131256534159 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1111946218754815195} - - component: {fileID: 806595924551922813} - - component: {fileID: 3803887674554022657} - - component: {fileID: 2316205957433088878} - - component: {fileID: 261797329024187214} - - component: {fileID: 1804761720200912732} - - component: {fileID: 7477962037737087719} - m_Layer: 5 - m_Name: Right - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1111946218754815195 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5400489131256534159} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 8739084464915515665} - - {fileID: 7574807222904802813} - - {fileID: 6223141631850656058} - - {fileID: 8791777657898941907} - - {fileID: 1088868648234050662} - - {fileID: 8940481846266048592} - m_Father: {fileID: 1607845471621885664} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 1106, y: 0} - m_SizeDelta: {x: 972, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!223 &806595924551922813 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5400489131256534159} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 2 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 25 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!114 &3803887674554022657 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5400489131256534159} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 - m_PresetInfoIsWorld: 0 ---- !u!114 &2316205957433088878 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5400489131256534159} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &261797329024187214 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5400489131256534159} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: 1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!114 &1804761720200912732 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5400489131256534159} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 1 - m_Spacing: 16 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 0 - m_ChildControlWidth: 1 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &7477962037737087719 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5400489131256534159} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 0 - m_VerticalFit: 1 ---- !u!1 &5560739527949542843 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6917705482908285452} - - component: {fileID: 2379872785218007574} - - component: {fileID: 31452198384870080} - - component: {fileID: 6772412718290219989} - m_Layer: 5 - m_Name: EmptyListing - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &6917705482908285452 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5560739527949542843} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 3035158559882944977} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 312.25, y: -36} - m_SizeDelta: {x: 437.06, y: 40} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &2379872785218007574 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5560739527949542843} - m_CullTransparentMesh: 1 ---- !u!114 &31452198384870080 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5560739527949542843} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_text: You don't have anything currently on sale - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4294967295 - m_fontColor: {r: 1, g: 1, b: 1, a: 1} - m_enableVertexGradient: 0 - m_colorMode: 3 - m_fontColorGradient: - topLeft: {r: 1, g: 1, b: 1, a: 1} - topRight: {r: 1, g: 1, b: 1, a: 1} - bottomLeft: {r: 1, g: 1, b: 1, a: 1} - bottomRight: {r: 1, g: 1, b: 1, a: 1} - m_fontColorGradientPreset: {fileID: 0} - m_spriteAsset: {fileID: 0} - m_tintAllSprites: 0 - m_StyleSheet: {fileID: 0} - m_TextStyleHashCode: -1183493901 - m_overrideHtmlColors: 0 - m_faceColor: - serializedVersion: 2 - rgba: 4294967295 - m_fontSize: 24 - m_fontSizeBase: 24 - m_fontWeight: 400 - m_enableAutoSizing: 0 - m_fontSizeMin: 18 - m_fontSizeMax: 72 - m_fontStyle: 0 - m_HorizontalAlignment: 2 - m_VerticalAlignment: 512 - m_textAlignment: 65535 - m_characterSpacing: 0 - m_wordSpacing: 0 - m_lineSpacing: 0 - m_lineSpacingMax: 0 - m_paragraphSpacing: 0 - m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 - m_wordWrappingRatios: 0.4 - m_overflowMode: 0 - m_linkedTextComponent: {fileID: 0} - parentLinkedComponent: {fileID: 0} - m_enableKerning: 1 - m_enableExtraPadding: 0 - checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!114 &6772412718290219989 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5560739527949542843} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 2 - m_VerticalFit: 0 ---- !u!1 &5596728940165775328 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6629805063034618615} - m_Layer: 5 - m_Name: ProgressContainer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &6629805063034618615 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5596728940165775328} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 5204483793222643173} - m_Father: {fileID: 8255573579165173045} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: -2} - m_SizeDelta: {x: 100, y: 60} - m_Pivot: {x: 0, y: 1} ---- !u!1 &5605343445472516035 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5201747520396966631} - - component: {fileID: 5809773413069597179} - - component: {fileID: 8498637664123155766} - - component: {fileID: 6274247523209718665} - m_Layer: 5 - m_Name: Scrollbar Horizontal - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &5201747520396966631 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5605343445472516035} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 8787692632801725751} - m_Father: {fileID: 8358955473714987148} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: -871} - m_SizeDelta: {x: 0, y: 20} - m_Pivot: {x: 0, y: 0} ---- !u!222 &5809773413069597179 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5605343445472516035} - m_CullTransparentMesh: 1 ---- !u!114 &8498637664123155766 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5605343445472516035} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.08627451, g: 0.08627451, b: 0.08627451, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &6274247523209718665 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5605343445472516035} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 7341000840594104222} - m_HandleRect: {fileID: 7464639486292647072} - m_Direction: 0 - m_Value: 0 - m_Size: 1 - m_NumberOfSteps: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!1 &5752834206706330662 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1331954448889498017} - m_Layer: 5 - m_Name: Sliding Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1331954448889498017 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5752834206706330662} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 1588156408419140343} - m_Father: {fileID: 7511881637065001384} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &5875696262469026428 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 7765584394057956173} - m_Layer: 5 - m_Name: Content - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &7765584394057956173 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5875696262469026428} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 6414723879218645855} - m_Father: {fileID: 879078204719867915} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 300} - m_Pivot: {x: 0, y: 1} ---- !u!1 &5910665483803521813 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6151446294135569783} - - component: {fileID: 8467788687146592396} - - component: {fileID: 9013586048588306001} - m_Layer: 5 - m_Name: EmptyNotListedContainer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &6151446294135569783 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5910665483803521813} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2689677033144375975} - m_Father: {fileID: 6414723879218645855} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 312.25, y: -36} - m_SizeDelta: {x: 624.5, y: 72} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &8467788687146592396 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5910665483803521813} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 16 - m_Bottom: 16 - m_ChildAlignment: 4 - m_Spacing: 0 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 0 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &9013586048588306001 + m_Bits: 4294967295 +--- !u!114 &261797329024187214 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5910665483803521813} + m_GameObject: {fileID: 5400489131256534159} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} m_Name: m_EditorClassIdentifier: - m_HorizontalFit: 0 - m_VerticalFit: 1 ---- !u!1 &6196572300119326732 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6414723879218645855} - - component: {fileID: 718324271668302349} - - component: {fileID: 8236601045806937574} - m_Layer: 5 - m_Name: NotListedList - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &6414723879218645855 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6196572300119326732} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 6151446294135569783} - - {fileID: 8843645455531899801} - m_Father: {fileID: 7765584394057956173} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 168} - m_Pivot: {x: 0, y: 1} ---- !u!114 &718324271668302349 + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: -1 + m_FlexibleWidth: 1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!114 &1804761720200912732 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6196572300119326732} + m_GameObject: {fileID: 5400489131256534159} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} @@ -4812,22 +3006,22 @@ MonoBehaviour: m_Right: 0 m_Top: 0 m_Bottom: 0 - m_ChildAlignment: 0 - m_Spacing: 0 + m_ChildAlignment: 1 + m_Spacing: 16 m_ChildForceExpandWidth: 1 m_ChildForceExpandHeight: 0 m_ChildControlWidth: 1 m_ChildControlHeight: 0 - m_ChildScaleWidth: 1 + m_ChildScaleWidth: 0 m_ChildScaleHeight: 0 m_ReverseArrangement: 0 ---- !u!114 &8236601045806937574 +--- !u!114 &7477962037737087719 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6196572300119326732} + m_GameObject: {fileID: 5400489131256534159} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} @@ -4835,7 +3029,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_HorizontalFit: 0 m_VerticalFit: 1 ---- !u!1 &6294482441450787133 +--- !u!1 &5596728940165775328 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -4843,79 +3037,36 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 8611774517390306429} - - component: {fileID: 7413724627779956956} - - component: {fileID: 1969203646539313115} + - component: {fileID: 6629805063034618615} m_Layer: 5 - m_Name: ListingsList + m_Name: ProgressContainer m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &8611774517390306429 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6294482441450787133} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 3035158559882944977} - - {fileID: 3821769267628310481} - m_Father: {fileID: 6754453409763373254} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 168} - m_Pivot: {x: 0, y: 1} ---- !u!114 &7413724627779956956 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6294482441450787133} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 0 - m_Spacing: 0 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 0 - m_ChildControlWidth: 1 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 1 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &1969203646539313115 -MonoBehaviour: + m_IsActive: 0 +--- !u!224 &6629805063034618615 +RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6294482441450787133} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 0 - m_VerticalFit: 1 ---- !u!1 &6298359747847049156 + m_GameObject: {fileID: 5596728940165775328} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 5204483793222643173} + m_Father: {fileID: 8255573579165173045} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 0, y: -2} + m_SizeDelta: {x: 100, y: 60} + m_Pivot: {x: 0, y: 1} +--- !u!1 &5605343445472516035 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -4923,65 +3074,67 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 6695690001535037887} - - component: {fileID: 6267589895629730361} - - component: {fileID: 921832787549337254} + - component: {fileID: 5201747520396966631} + - component: {fileID: 5809773413069597179} + - component: {fileID: 8498637664123155766} + - component: {fileID: 6274247523209718665} m_Layer: 5 - m_Name: Handle + m_Name: Scrollbar Horizontal m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &6695690001535037887 +--- !u!224 &5201747520396966631 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6298359747847049156} + m_GameObject: {fileID: 5605343445472516035} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 228051022144817607} - m_RootOrder: 0 + m_Children: + - {fileID: 8787692632801725751} + m_Father: {fileID: 8358955473714987148} + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &6267589895629730361 + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: -871} + m_SizeDelta: {x: 0, y: 20} + m_Pivot: {x: 0, y: 0} +--- !u!222 &5809773413069597179 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6298359747847049156} + m_GameObject: {fileID: 5605343445472516035} m_CullTransparentMesh: 1 ---- !u!114 &921832787549337254 +--- !u!114 &8498637664123155766 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6298359747847049156} + m_GameObject: {fileID: 5605343445472516035} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0.13333334, g: 0.13333334, b: 0.13333334, a: 1} + m_Color: {r: 0.08627451, g: 0.08627451, b: 0.08627451, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 @@ -4991,6 +3144,55 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!114 &6274247523209718665 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5605343445472516035} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 7341000840594104222} + m_HandleRect: {fileID: 7464639486292647072} + m_Direction: 0 + m_Value: 0 + m_Size: 1 + m_NumberOfSteps: 0 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] --- !u!1 &6307766539184013820 GameObject: m_ObjectHideFlags: 0 @@ -5022,8 +3224,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 1607845471621885664} - - {fileID: 619698540636144971} - - {fileID: 8323929328015196559} m_Father: {fileID: 3568366139250381339} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -5072,82 +3272,6 @@ MonoBehaviour: m_EditorClassIdentifier: m_HorizontalFit: 0 m_VerticalFit: 1 ---- !u!1 &6432862721114921693 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1588156408419140343} - - component: {fileID: 2472070939573360458} - - component: {fileID: 4649668600924569832} - m_Layer: 5 - m_Name: Handle - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1588156408419140343 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6432862721114921693} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 1331954448889498017} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &2472070939573360458 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6432862721114921693} - m_CullTransparentMesh: 1 ---- !u!114 &4649668600924569832 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6432862721114921693} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.13333334, g: 0.13333334, b: 0.13333334, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 --- !u!1 &6740886720052786823 GameObject: m_ObjectHideFlags: 0 @@ -5281,118 +3405,8 @@ MonoBehaviour: m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!1 &6753814474818496725 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6373521067095767262} - - component: {fileID: 7741964515140162062} - - component: {fileID: 8572480199836444570} - - component: {fileID: 5734152245574008136} - m_Layer: 5 - m_Name: NotForSale - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &6373521067095767262 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6753814474818496725} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 879078204719867915} - - {fileID: 7511881637065001384} - - {fileID: 3758318194252029649} - m_Father: {fileID: 8323929328015196559} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 320.75, y: -150} - m_SizeDelta: {x: 641.5, y: 300} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &7741964515140162062 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6753814474818496725} - m_CullTransparentMesh: 1 ---- !u!114 &8572480199836444570 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6753814474818496725} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.392} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &5734152245574008136 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6753814474818496725} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Content: {fileID: 7765584394057956173} - m_Horizontal: 1 - m_Vertical: 1 - m_MovementType: 1 - m_Elasticity: 0.1 - m_Inertia: 1 - m_DecelerationRate: 0.135 - m_ScrollSensitivity: 1 - m_Viewport: {fileID: 879078204719867915} - m_HorizontalScrollbar: {fileID: 2432997396041558253} - m_VerticalScrollbar: {fileID: 8403506395740994891} - m_HorizontalScrollbarVisibility: 2 - m_VerticalScrollbarVisibility: 2 - m_HorizontalScrollbarSpacing: -3 - m_VerticalScrollbarSpacing: -3 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!1 &6755584394337994425 GameObject: m_ObjectHideFlags: 0 @@ -5640,71 +3654,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_ShowMaskGraphic: 0 ---- !u!1 &7140458320100926459 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 619698540636144971} - - component: {fileID: 7786858524022978780} - m_Layer: 5 - m_Name: Titles - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &619698540636144971 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7140458320100926459} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 3661139419109309395} - - {fileID: 4321183276467806256} - m_Father: {fileID: 4559103411365147038} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 673.5, y: -540} - m_SizeDelta: {x: 1283, y: 40} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &7786858524022978780 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7140458320100926459} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 0 - m_Spacing: 0 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 0 - m_ChildControlWidth: 1 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 --- !u!1 &7164278370335668412 GameObject: m_ObjectHideFlags: 0 @@ -5755,7 +3704,7 @@ GameObject: - component: {fileID: 7510809188624096651} - component: {fileID: 4606316674714940791} m_Layer: 5 - m_Name: AssetDetailsView + m_Name: InventoryAssetDetailsView m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -5838,16 +3787,13 @@ MonoBehaviour: m_Image: {fileID: 5119153556944074267} m_NameText: {fileID: 4151299910680269669} m_DescriptionText: {fileID: 4271182564205091161} - m_MarketContainer: {fileID: 690843577683046257} m_FloorPriceText: {fileID: 7217339790163352429} m_LastTradePriceText: {fileID: 2410057450884737555} m_TokenIdText: {fileID: 1942693705370358602} m_CollectionText: {fileID: 2209573523083639576} m_ContractTypeText: {fileID: 3731552220700385987} - m_AttributesContainer: {fileID: 749922319627830519} m_AttributesListParent: {fileID: 5086264850416514187} m_AttributeObj: {fileID: 2119234987179482113} - m_ListingContainer: {fileID: 491795817209166617} m_AmountText: {fileID: 6506949152307499563} m_SellButton: {fileID: 6447972585370965746} m_CancelButton: {fileID: 7911634683186926891} @@ -5971,293 +3917,38 @@ MonoBehaviour: m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!114 &8573187281732521364 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7539036871949489094} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 2 - m_VerticalFit: 0 ---- !u!1 &8053849787287044384 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 879078204719867915} - - component: {fileID: 9021530636866020439} - - component: {fileID: 8679546873527747344} - - component: {fileID: 5040456886576580960} - m_Layer: 5 - m_Name: Viewport - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &879078204719867915 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8053849787287044384} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 7765584394057956173} - m_Father: {fileID: 6373521067095767262} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -17, y: -17} - m_Pivot: {x: 0, y: 1} ---- !u!222 &9021530636866020439 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8053849787287044384} - m_CullTransparentMesh: 1 ---- !u!114 &8679546873527747344 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8053849787287044384} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10917, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &5040456886576580960 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8053849787287044384} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3} - m_Name: - m_EditorClassIdentifier: - m_ShowMaskGraphic: 0 ---- !u!1 &8094335591393432276 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4601279685342925547} - m_Layer: 5 - m_Name: Sliding Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &4601279685342925547 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8094335591393432276} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 3590656101560901416} - m_Father: {fileID: 3758318194252029649} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &8235271878357564385 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2416474379553470136} - - component: {fileID: 1471423015073558832} - - component: {fileID: 5115766257489234975} - - component: {fileID: 5434613235974104349} - m_Layer: 5 - m_Name: Scrollbar Horizontal - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2416474379553470136 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8235271878357564385} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 228051022144817607} - m_Father: {fileID: 6898932858357690874} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -17, y: 20} - m_Pivot: {x: 0, y: 0} ---- !u!222 &1471423015073558832 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8235271878357564385} - m_CullTransparentMesh: 1 ---- !u!114 &5115766257489234975 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8235271878357564385} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.08627451, g: 0.08627451, b: 0.08627451, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &5434613235974104349 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!114 &8573187281732521364 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8235271878357564385} + m_GameObject: {fileID: 7539036871949489094} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} m_Name: m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 921832787549337254} - m_HandleRect: {fileID: 6695690001535037887} - m_Direction: 0 - m_Value: 0 - m_Size: 1 - m_NumberOfSteps: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] + m_HorizontalFit: 2 + m_VerticalFit: 0 --- !u!1 &8392363002060334165 GameObject: m_ObjectHideFlags: 0 @@ -6393,133 +4084,6 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!1 &8612674997558602682 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 3758318194252029649} - - component: {fileID: 9004538266082683975} - - component: {fileID: 4164427130467230871} - - component: {fileID: 8403506395740994891} - m_Layer: 5 - m_Name: Scrollbar Vertical - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &3758318194252029649 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8612674997558602682} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 4601279685342925547} - m_Father: {fileID: 6373521067095767262} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: -17} - m_Pivot: {x: 1, y: 1} ---- !u!222 &9004538266082683975 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8612674997558602682} - m_CullTransparentMesh: 1 ---- !u!114 &4164427130467230871 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8612674997558602682} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.08627451, g: 0.08627451, b: 0.08627451, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 1 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!114 &8403506395740994891 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8612674997558602682} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 9152401613822625041} - m_HandleRect: {fileID: 3590656101560901416} - m_Direction: 2 - m_Value: 1 - m_Size: 0.9433333 - m_NumberOfSteps: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] --- !u!1 &8746671516182017926 GameObject: m_ObjectHideFlags: 0 @@ -6562,112 +4126,13 @@ RectTransform: m_AnchoredPosition: {x: 116, y: 0} m_SizeDelta: {x: 0, y: 64} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &4750983624430325651 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8746671516182017926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 3 - m_Spacing: 16 - m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 0 - m_ChildControlWidth: 0 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &4338045364790688728 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8746671516182017926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: 200 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: 1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!114 &1541310537634931020 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8746671516182017926} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} - m_Name: - m_EditorClassIdentifier: - m_HorizontalFit: 2 - m_VerticalFit: 0 ---- !u!1 &8899885796199085950 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 8323929328015196559} - - component: {fileID: 1505142431025830966} - m_Layer: 5 - m_Name: ListsContainer - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &8323929328015196559 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8899885796199085950} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 6373521067095767262} - - {fileID: 6898932858357690874} - m_Father: {fileID: 4559103411365147038} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 673.5, y: -670} - m_SizeDelta: {x: 1283, y: 300} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1505142431025830966 +--- !u!114 &4750983624430325651 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8899885796199085950} + m_GameObject: {fileID: 8746671516182017926} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} @@ -6678,15 +4143,49 @@ MonoBehaviour: m_Right: 0 m_Top: 0 m_Bottom: 0 - m_ChildAlignment: 0 - m_Spacing: 0 - m_ChildForceExpandWidth: 1 + m_ChildAlignment: 3 + m_Spacing: 16 + m_ChildForceExpandWidth: 0 m_ChildForceExpandHeight: 0 - m_ChildControlWidth: 1 + m_ChildControlWidth: 0 m_ChildControlHeight: 0 m_ChildScaleWidth: 0 m_ChildScaleHeight: 0 m_ReverseArrangement: 0 +--- !u!114 &4338045364790688728 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8746671516182017926} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 0 + m_MinWidth: 200 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: -1 + m_FlexibleWidth: 1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!114 &1541310537634931020 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8746671516182017926} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 2 + m_VerticalFit: 0 --- !u!1 &8922862951000942197 GameObject: m_ObjectHideFlags: 0 @@ -7102,406 +4601,146 @@ PrefabInstance: propertyPath: m_RootOrder value: 0 objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchorMax.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchorMin.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_SizeDelta.x - value: 80 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_SizeDelta.y - value: 40 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8790377886039207153, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - propertyPath: m_Name - value: Back Button - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} ---- !u!114 &608994780706620231 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 789626078443020338, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - m_PrefabInstance: {fileID: 182049691359175541} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8897836502386347908} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b5e87ca911816437f846b3f0d738b485, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &8897836502386347908 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 8790377886039207153, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - m_PrefabInstance: {fileID: 182049691359175541} - m_PrefabAsset: {fileID: 0} ---- !u!114 &2277865912765390913 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8897836502386347908} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: 80 - m_PreferredHeight: 40 - m_FlexibleWidth: -1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!224 &8897836502386347909 stripped -RectTransform: - m_CorrespondingSourceObject: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, - type: 3} - m_PrefabInstance: {fileID: 182049691359175541} - m_PrefabAsset: {fileID: 0} ---- !u!1001 &619094165042216715 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 8611774517390306429} - m_Modifications: - - target: {fileID: 2838428771016816845, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 2838428771016816845, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 2838428771016816845, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_SizeDelta.x - value: 237.80501 - objectReference: {fileID: 0} - - target: {fileID: 2838428771016816845, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 32 - objectReference: {fileID: 0} - - target: {fileID: 2838428771016816845, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchoredPosition.y - value: -48 - objectReference: {fileID: 0} - - target: {fileID: 2910761123095850727, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_Name - value: AssetListingObject - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_SizeDelta.x - value: 306.695 - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 439.1525 - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchoredPosition.y - value: -48 - objectReference: {fileID: 0} - - target: {fileID: 4174385919738700553, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4174385919738700553, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4174385919738700553, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_SizeDelta.x - value: 307.33334 - objectReference: {fileID: 0} - - target: {fileID: 4174385919738700553, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 32 - objectReference: {fileID: 0} - - target: {fileID: 4174385919738700553, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_Pivot.x - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_Pivot.y - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_RootOrder - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchorMax.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchorMax.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchorMin.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchorMin.y value: 1 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_SizeDelta.x - value: 624.5 + value: 80 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_SizeDelta.y - value: 96 + value: 40 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalPosition.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalPosition.y value: 0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalRotation.w value: 1 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalRotation.x value: -0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalRotation.y value: -0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalRotation.z value: -0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchoredPosition.x - value: 624.5 + value: 0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchoredPosition.y - value: -120 + value: 0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalEulerAnglesHint.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalEulerAnglesHint.y value: 0 objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 5321908480584742034, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_text - value: Token Id - objectReference: {fileID: 0} - - target: {fileID: 6186255925442925247, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_HorizontalFit - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6381905700837026070, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_IsActive - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6381905700837026071, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6381905700837026071, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6381905700837026071, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6381905700837026073, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_Material - value: - objectReference: {fileID: 0} - - target: {fileID: 8681892818573217125, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_Material - value: - objectReference: {fileID: 0} - - target: {fileID: 8681892818573217131, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8681892818573217131, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 8681892818573217131, guid: 50caf6d8d6dd146bb9062ee755f77982, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 146.695 - objectReference: {fileID: 0} - - target: {fileID: 8695517657532629572, guid: 50caf6d8d6dd146bb9062ee755f77982, + - target: {fileID: 8790377886039207153, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} - propertyPath: m_ChildControlWidth - value: 1 + propertyPath: m_Name + value: Back Button objectReference: {fileID: 0} m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 50caf6d8d6dd146bb9062ee755f77982, type: 3} ---- !u!224 &3821769267628310481 stripped + m_SourcePrefab: {fileID: 100100000, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} +--- !u!114 &608994780706620231 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 789626078443020338, guid: e2817ba29ba59484a96ceffea6c5abf2, + type: 3} + m_PrefabInstance: {fileID: 182049691359175541} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8897836502386347908} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b5e87ca911816437f846b3f0d738b485, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1 &8897836502386347908 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 8790377886039207153, guid: e2817ba29ba59484a96ceffea6c5abf2, + type: 3} + m_PrefabInstance: {fileID: 182049691359175541} + m_PrefabAsset: {fileID: 0} +--- !u!114 &2277865912765390913 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8897836502386347908} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: 80 + m_PreferredHeight: 40 + m_FlexibleWidth: -1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!224 &8897836502386347909 stripped RectTransform: - m_CorrespondingSourceObject: {fileID: 4440215232704856282, guid: 50caf6d8d6dd146bb9062ee755f77982, + m_CorrespondingSourceObject: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} - m_PrefabInstance: {fileID: 619094165042216715} + m_PrefabInstance: {fileID: 182049691359175541} m_PrefabAsset: {fileID: 0} --- !u!1001 &715839669571520172 PrefabInstance: @@ -7761,211 +5000,6 @@ MonoBehaviour: m_FlexibleWidth: -1 m_FlexibleHeight: -1 m_LayoutPriority: 1 ---- !u!1001 &5126258101248277315 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 6414723879218645855} - m_Modifications: - - target: {fileID: 2838428771016816845, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 2838428771016816845, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 2838428771016816845, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_SizeDelta.x - value: 239.76001 - objectReference: {fileID: 0} - - target: {fileID: 2838428771016816845, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 32 - objectReference: {fileID: 0} - - target: {fileID: 2838428771016816845, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchoredPosition.y - value: -48 - objectReference: {fileID: 0} - - target: {fileID: 2910761123095850727, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_Name - value: AssetNotListedObject - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_SizeDelta.x - value: 304.74 - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 440.13 - objectReference: {fileID: 0} - - target: {fileID: 3581655820354171537, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchoredPosition.y - value: -48 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_Pivot.x - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_Pivot.y - value: 0.5 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_RootOrder - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMax.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMin.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_SizeDelta.x - value: 624.5 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_SizeDelta.y - value: 96 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 624.5 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchoredPosition.y - value: -120 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5321908480584742034, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_text - value: Token ID - objectReference: {fileID: 0} - - target: {fileID: 6186255925442925247, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_HorizontalFit - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6381905700837026071, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6381905700837026071, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6381905700837026071, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_AnchoredPosition.x - value: 144.73999 - objectReference: {fileID: 0} - - target: {fileID: 6381905700837026073, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - propertyPath: m_Material - value: - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 074c32efeeb1d454b8681a4c28a2f1dc, type: 3} ---- !u!224 &8843645455531899801 stripped -RectTransform: - m_CorrespondingSourceObject: {fileID: 4440215232704856282, guid: 074c32efeeb1d454b8681a4c28a2f1dc, - type: 3} - m_PrefabInstance: {fileID: 5126258101248277315} - m_PrefabAsset: {fileID: 0} --- !u!1001 &6020921667680040640 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Shared/Prefabs/UI/AssetDetailsView.prefab.meta b/Assets/Shared/Prefabs/UI/InventoryAssetDetailsView.prefab.meta similarity index 100% rename from Assets/Shared/Prefabs/UI/AssetDetailsView.prefab.meta rename to Assets/Shared/Prefabs/UI/InventoryAssetDetailsView.prefab.meta diff --git a/Assets/Shared/Prefabs/UI/InventoryScreen.prefab b/Assets/Shared/Prefabs/UI/InventoryScreen.prefab index 6c368d25..6103c7c3 100644 --- a/Assets/Shared/Prefabs/UI/InventoryScreen.prefab +++ b/Assets/Shared/Prefabs/UI/InventoryScreen.prefab @@ -128,42 +128,6 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 40} m_Pivot: {x: 0.5, y: 1} ---- !u!1 &159936575208717797 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5928115135867487630} - m_Layer: 5 - m_Name: GameObject - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &5928115135867487630 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 159936575208717797} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 5538285658628802168} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &230171085103504263 GameObject: m_ObjectHideFlags: 0 @@ -491,8 +455,8 @@ MonoBehaviour: m_TargetGraphic: {fileID: 4986908211239487415} m_HandleRect: {fileID: 2602276242752267194} m_Direction: 2 - m_Value: 0 - m_Size: 1 + m_Value: 1 + m_Size: 0.77962965 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: @@ -931,7 +895,6 @@ RectTransform: - {fileID: 5164312704210014232} - {fileID: 4030153286852761329} - {fileID: 8358955473714987148} - - {fileID: 5928115135867487630} m_Father: {fileID: 7510809188624096650} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -2696,7 +2659,7 @@ GameObject: - component: {fileID: 1434711093444192206} - component: {fileID: 8120807956211276150} m_Layer: 5 - m_Name: AssetObject + m_Name: InventoryObject m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -2907,6 +2870,7 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 5538285658628802168} + - {fileID: 1016649305396227811} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -2970,10 +2934,9 @@ MonoBehaviour: m_BackEvent: {fileID: 11400000, guid: 58f804667e2cb4eb789b6d2dfb3c4ce3, type: 2} m_Balance: {fileID: 7413814428584860172} m_TypeDropdown: {fileID: 3902948968200711973} - m_AssetObj: {fileID: 9215591978314449373} - m_ListParent: {fileID: 3995018089020746221} + m_InventoryObj: {fileID: 9215591978314449373} m_ScrollView: {fileID: 6011150636714096262} - m_AddFunds: {fileID: 0} + m_AddFunds: {fileID: 278197972233077694} --- !u!1 &7652146041976592896 GameObject: m_ObjectHideFlags: 0 @@ -4083,6 +4046,148 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 2df87bdd7bd69406c9575d6917ea550b, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!1001 &5030170262066208169 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 7510809188624096650} + m_Modifications: + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_SizeDelta.x + value: 600 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_SizeDelta.y + value: 650 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346709, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_Name + value: AddFundsView + objectReference: {fileID: 0} + - target: {fileID: 5464304629124346709, guid: 9703ade02db14aea9329516418991255, + type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 9703ade02db14aea9329516418991255, type: 3} +--- !u!114 &278197972233077694 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 5049268175328206359, guid: 9703ade02db14aea9329516418991255, + type: 3} + m_PrefabInstance: {fileID: 5030170262066208169} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 34f4fd3646f040d99e04107838a59be2, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!224 &1016649305396227811 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 5464304629124346698, guid: 9703ade02db14aea9329516418991255, + type: 3} + m_PrefabInstance: {fileID: 5030170262066208169} + m_PrefabAsset: {fileID: 0} --- !u!1001 &6371725372493556342 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Shared/Prefabs/UI/ListingObject.prefab b/Assets/Shared/Prefabs/UI/ListingObject.prefab index 00d66c21..41ae2456 100644 --- a/Assets/Shared/Prefabs/UI/ListingObject.prefab +++ b/Assets/Shared/Prefabs/UI/ListingObject.prefab @@ -206,7 +206,7 @@ RectTransform: - {fileID: 6381905700837026071} - {fileID: 3292958697450303025} m_Father: {fileID: 4440215232704856282} - m_RootOrder: 2 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -259,6 +259,177 @@ MonoBehaviour: m_FlexibleWidth: 1 m_FlexibleHeight: -1 m_LayoutPriority: 1 +--- !u!1 &2593414958908395744 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 578874644159181812} + - component: {fileID: 3525441052032818008} + - component: {fileID: 153555763646926980} + - component: {fileID: 2222301104912928653} + - component: {fileID: 2897461431207697379} + m_Layer: 5 + m_Name: Amount + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &578874644159181812 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2593414958908395744} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 4440215232704856282} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 206.68, y: 0} + m_SizeDelta: {x: 110.86, y: 40} + m_Pivot: {x: 0, y: 0.5} +--- !u!222 &3525441052032818008 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2593414958908395744} + m_CullTransparentMesh: 1 +--- !u!114 &153555763646926980 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2593414958908395744} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294967295 + m_fontColor: {r: 1, g: 1, b: 1, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 24 + m_fontSizeBase: 24 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!114 &2222301104912928653 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2593414958908395744} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 0 + m_VerticalFit: 0 +--- !u!114 &2897461431207697379 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2593414958908395744} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: -1 + m_FlexibleWidth: 1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 --- !u!1 &2907070573568759799 GameObject: m_ObjectHideFlags: 0 @@ -384,6 +555,7 @@ RectTransform: m_Children: - {fileID: 4174385919738700553} - {fileID: 2838428771016816845} + - {fileID: 578874644159181812} - {fileID: 3581655820354171537} m_Father: {fileID: 0} m_RootOrder: 0 @@ -483,8 +655,9 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: dddfe3e059d934fc28d49569d4582f8c, type: 3} m_Name: m_EditorClassIdentifier: - m_AmountText: {fileID: 2590973862850910457} + m_PriceText: {fileID: 2590973862850910457} m_TokenIdText: {fileID: 5321908480584742034} + m_AmountText: {fileID: 153555763646926980} m_BuyButton: {fileID: 3141814675650749909} m_PlayersListingText: {fileID: 4202246396345384648} m_Progress: {fileID: 145533122687552625} diff --git a/Assets/Shared/Prefabs/UI/OrderDetailsView.prefab b/Assets/Shared/Prefabs/UI/MarketplaceAssetDetailsView.prefab similarity index 99% rename from Assets/Shared/Prefabs/UI/OrderDetailsView.prefab rename to Assets/Shared/Prefabs/UI/MarketplaceAssetDetailsView.prefab index 365814f8..4eb20138 100644 --- a/Assets/Shared/Prefabs/UI/OrderDetailsView.prefab +++ b/Assets/Shared/Prefabs/UI/MarketplaceAssetDetailsView.prefab @@ -131,8 +131,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 347, y: 0} - m_SizeDelta: {x: 694, y: 0} + m_AnchoredPosition: {x: 382, y: 0} + m_SizeDelta: {x: 764, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &5872264361305151696 MonoBehaviour: @@ -709,7 +709,7 @@ MonoBehaviour: m_HandleRect: {fileID: 2602276242752267194} m_Direction: 2 m_Value: 1 - m_Size: 0.6614372 + m_Size: 0.60872895 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: @@ -3638,8 +3638,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 347, y: 0} - m_SizeDelta: {x: 694, y: 0} + m_AnchoredPosition: {x: 382, y: 0} + m_SizeDelta: {x: 764, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &5338086283286779672 MonoBehaviour: @@ -3932,8 +3932,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 967, y: 0} - m_SizeDelta: {x: 694, y: 0} + m_AnchoredPosition: {x: 1002, y: 0} + m_SizeDelta: {x: 764, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!223 &3182255964254728501 Canvas: @@ -4369,7 +4369,7 @@ GameObject: - component: {fileID: 7510809188624096651} - component: {fileID: 2836690646463141429} m_Layer: 5 - m_Name: OrderDetailsView + m_Name: MarketplaceAssetDetailsView m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -4633,8 +4633,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 689, y: 0} - m_SizeDelta: {x: 1314, y: 0} + m_AnchoredPosition: {x: 724, y: 0} + m_SizeDelta: {x: 1384, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &7885326489643190289 MonoBehaviour: @@ -6058,6 +6058,31 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 7116999610998346683} m_Modifications: + - target: {fileID: 578874644159181812, guid: 7c4c9b55fd15746e4b4d50e9680879f9, + type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 578874644159181812, guid: 7c4c9b55fd15746e4b4d50e9680879f9, + type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 578874644159181812, guid: 7c4c9b55fd15746e4b4d50e9680879f9, + type: 3} + propertyPath: m_SizeDelta.x + value: 39.75 + objectReference: {fileID: 0} + - target: {fileID: 578874644159181812, guid: 7c4c9b55fd15746e4b4d50e9680879f9, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 415.5 + objectReference: {fileID: 0} + - target: {fileID: 578874644159181812, guid: 7c4c9b55fd15746e4b4d50e9680879f9, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 2590973862850910457, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} propertyPath: m_text @@ -6081,12 +6106,12 @@ PrefabInstance: - target: {fileID: 2838428771016816845, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 189.75 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 209.75 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} @@ -6146,12 +6171,12 @@ PrefabInstance: - target: {fileID: 4174385919738700553, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 189.75 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 4 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} @@ -6196,7 +6221,7 @@ PrefabInstance: - target: {fileID: 4440215232704856282, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 715 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} @@ -6241,7 +6266,7 @@ PrefabInstance: - target: {fileID: 4440215232704856282, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 357.5 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: 7c4c9b55fd15746e4b4d50e9680879f9, type: 3} diff --git a/Assets/Shared/Prefabs/UI/OrderDetailsView.prefab.meta b/Assets/Shared/Prefabs/UI/MarketplaceAssetDetailsView.prefab.meta similarity index 100% rename from Assets/Shared/Prefabs/UI/OrderDetailsView.prefab.meta rename to Assets/Shared/Prefabs/UI/MarketplaceAssetDetailsView.prefab.meta diff --git a/Assets/Shared/Prefabs/UI/MarketplaceScreen.prefab b/Assets/Shared/Prefabs/UI/MarketplaceScreen.prefab index 9171c9c6..1fe88dc8 100644 --- a/Assets/Shared/Prefabs/UI/MarketplaceScreen.prefab +++ b/Assets/Shared/Prefabs/UI/MarketplaceScreen.prefab @@ -31,7 +31,7 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 3995018089020746221} + - {fileID: 5412731277496809935} m_Father: {fileID: 8358955473714987148} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -91,42 +91,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_ShowMaskGraphic: 0 ---- !u!1 &159936575208717797 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5928115135867487630} - m_Layer: 5 - m_Name: GameObject - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &5928115135867487630 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 159936575208717797} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 5538285658628802168} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &185970378641887783 GameObject: m_ObjectHideFlags: 0 @@ -262,7 +226,7 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!1 &793882783438235353 +--- !u!1 &470839006778754353 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -270,54 +234,54 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 4427292257588720371} - - component: {fileID: 5963927651096166582} - - component: {fileID: 1138283668599618519} + - component: {fileID: 6468990651177707383} + - component: {fileID: 6485686849884591151} + - component: {fileID: 2387680068008663955} m_Layer: 5 - m_Name: Arrow + m_Name: Name m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &4427292257588720371 +--- !u!224 &6468990651177707383 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 793882783438235353} + m_GameObject: {fileID: 470839006778754353} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 7634989929498384135} - m_RootOrder: 1 + m_Father: {fileID: 4532772891192604847} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 0.5} - m_AnchorMax: {x: 1, y: 0.5} - m_AnchoredPosition: {x: -15, y: 0} - m_SizeDelta: {x: 20, y: 20} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &5963927651096166582 +--- !u!222 &6485686849884591151 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 793882783438235353} + m_GameObject: {fileID: 470839006778754353} m_CullTransparentMesh: 1 ---- !u!114 &1138283668599618519 +--- !u!114 &2387680068008663955 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 793882783438235353} + m_GameObject: {fileID: 470839006778754353} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} @@ -328,17 +292,76 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 10915, guid: 0000000000000000f000000000000000, type: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!1 &998293692609945372 + m_text: Name + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294967295 + m_fontColor: {r: 1, g: 1, b: 1, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 28 + m_fontSizeBase: 28 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 1 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 1 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &793882783438235353 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -346,63 +369,74 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 124898515646383462} - - component: {fileID: 1308100842664201262} + - component: {fileID: 4427292257588720371} + - component: {fileID: 5963927651096166582} + - component: {fileID: 1138283668599618519} m_Layer: 5 - m_Name: Horizontal + m_Name: Arrow m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &124898515646383462 +--- !u!224 &4427292257588720371 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 998293692609945372} + m_GameObject: {fileID: 793882783438235353} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 3142198370082745429} - - {fileID: 5521470754286056976} - m_Father: {fileID: 6116018892486565038} - m_RootOrder: 0 + m_Children: [] + m_Father: {fileID: 7634989929498384135} + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 1, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: -15, y: 0} + m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1308100842664201262 +--- !u!222 &5963927651096166582 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 793882783438235353} + m_CullTransparentMesh: 1 +--- !u!114 &1138283668599618519 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 998293692609945372} + m_GameObject: {fileID: 793882783438235353} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: m_EditorClassIdentifier: - m_Padding: - m_Left: 20 - m_Right: 20 - m_Top: 20 - m_Bottom: 20 - m_ChildAlignment: 3 - m_Spacing: 20 - m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 1 - m_ChildControlHeight: 1 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10915, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 --- !u!1 &1048792326114649233 GameObject: m_ObjectHideFlags: 0 @@ -524,8 +558,8 @@ MonoBehaviour: m_TargetGraphic: {fileID: 4986908211239487415} m_HandleRect: {fileID: 2602276242752267194} m_Direction: 2 - m_Value: 0 - m_Size: 1 + m_Value: 1 + m_Size: 0.97962964 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: @@ -1133,7 +1167,6 @@ RectTransform: - {fileID: 5164312704210014232} - {fileID: 770441646794474486} - {fileID: 8358955473714987148} - - {fileID: 5928115135867487630} m_Father: {fileID: 7510809188624096650} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -1658,7 +1691,7 @@ MonoBehaviour: m_FlexibleWidth: -1 m_FlexibleHeight: -1 m_LayoutPriority: 1 ---- !u!1 &4123126890348740393 +--- !u!1 &4145647622162642894 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1666,206 +1699,55 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 5521470754286056976} - - component: {fileID: 6484893676088047057} - - component: {fileID: 7829998904043886647} - - component: {fileID: 948158732905049105} - - component: {fileID: 3459236360228319603} - - component: {fileID: 300918544894982818} + - component: {fileID: 8787692632801725751} m_Layer: 5 - m_Name: Properties + m_Name: Sliding Area m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &5521470754286056976 +--- !u!224 &8787692632801725751 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4123126890348740393} + m_GameObject: {fileID: 4145647622162642894} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 1703904101713240439} - - {fileID: 3565483341480360257} - - {fileID: 5667147991621763300} - m_Father: {fileID: 124898515646383462} - m_RootOrder: 1 + - {fileID: 7464639486292647072} + m_Father: {fileID: 5201747520396966631} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: -20, y: -20} m_Pivot: {x: 0.5, y: 0.5} ---- !u!223 &6484893676088047057 -Canvas: +--- !u!1 &4470248200599541300 +GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4123126890348740393} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 2 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 25 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!114 &7829998904043886647 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4123126890348740393} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 - m_PresetInfoIsWorld: 0 ---- !u!114 &948158732905049105 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4123126890348740393} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &3459236360228319603 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4123126890348740393} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: 1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!114 &300918544894982818 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4123126890348740393} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 3 - m_Spacing: 16 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 0 - m_ChildControlWidth: 1 - m_ChildControlHeight: 1 - m_ChildScaleWidth: 0 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!1 &4145647622162642894 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 8787692632801725751} - m_Layer: 5 - m_Name: Sliding Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &8787692632801725751 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 4145647622162642894} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 7464639486292647072} - m_Father: {fileID: 5201747520396966631} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &4470248200599541300 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 109914119288497493} - - component: {fileID: 5881239095189784317} - - component: {fileID: 3542983571884144820} - m_Layer: 5 - m_Name: Item Background - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &109914119288497493 -RectTransform: + serializedVersion: 6 + m_Component: + - component: {fileID: 109914119288497493} + - component: {fileID: 5881239095189784317} + - component: {fileID: 3542983571884144820} + m_Layer: 5 + m_Name: Item Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &109914119288497493 +RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} @@ -1947,12 +1829,12 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4645982581337050730} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 5521470754286056976} + m_Father: {fileID: 4532772891192604847} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -1988,7 +1870,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: + m_text: '-' m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -2022,7 +1904,7 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_HorizontalAlignment: 1 + m_HorizontalAlignment: 2 m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 @@ -2148,6 +2030,126 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!1 &4853904098863497947 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3041820411594759372} + - component: {fileID: 7500949447637777029} + - component: {fileID: 8577662726398647772} + - component: {fileID: 1144722281086784818} + - component: {fileID: 4233463060793771456} + m_Layer: 5 + m_Name: Card + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &3041820411594759372 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4853904098863497947} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 7092895398745732733} + - {fileID: 4532772891192604847} + m_Father: {fileID: 1090722349058935065} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &7500949447637777029 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4853904098863497947} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 20 + m_Right: 20 + m_Top: 20 + m_Bottom: 20 + m_ChildAlignment: 4 + m_Spacing: 20 + m_ChildForceExpandWidth: 0 + m_ChildForceExpandHeight: 0 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!222 &8577662726398647772 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4853904098863497947} + m_CullTransparentMesh: 1 +--- !u!114 &1144722281086784818 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4853904098863497947} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.09411765, g: 0.09411765, b: 0.09411765, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &4233463060793771456 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4853904098863497947} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3} + m_Name: + m_EditorClassIdentifier: + radius: 40 + image: {fileID: 1144722281086784818} --- !u!1 &4962701843135163721 GameObject: m_ObjectHideFlags: 0 @@ -2515,7 +2517,7 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!1 &5346749973347251154 +--- !u!1 &5103482858618529178 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2523,57 +2525,269 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 8358955473714987148} - - component: {fileID: 7580228993619882828} - - component: {fileID: 6046904525841126385} - - component: {fileID: 2823423808506140996} - - component: {fileID: 2364620168419014579} - - component: {fileID: 2174789502373950655} + - component: {fileID: 5412731277496809935} + - component: {fileID: 2048945335402715791} + - component: {fileID: 7238945160507187845} m_Layer: 5 - m_Name: Scroll View + m_Name: List m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &8358955473714987148 +--- !u!224 &5412731277496809935 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5346749973347251154} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_GameObject: {fileID: 5103482858618529178} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 1560834978935093154} - - {fileID: 5201747520396966631} - - {fileID: 4572433871481564286} - m_Father: {fileID: 5538285658628802168} - m_RootOrder: 2 + - {fileID: 1090722349058935065} + m_Father: {fileID: 1560834978935093154} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &7580228993619882828 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5346749973347251154} - m_CullTransparentMesh: 1 ---- !u!114 &6046904525841126385 + m_Pivot: {x: 0, y: 1} +--- !u!114 &2048945335402715791 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5346749973347251154} + m_GameObject: {fileID: 5103482858618529178} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 0 + m_VerticalFit: 1 +--- !u!114 &7238945160507187845 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5103482858618529178} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 12be5eba2613f4eaab720d437dae2199, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 20 + m_Right: 20 + m_Top: 20 + m_Bottom: 20 + m_ChildAlignment: 0 + m_StartCorner: 0 + m_StartAxis: 0 + m_CellSize: {x: 100, y: 500} + m_Spacing: {x: 20, y: 20} + m_Constraint: 1 + m_ConstraintCount: 4 +--- !u!1 &5112930609778248145 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7055246610904000900} + - component: {fileID: 7897151942640557818} + - component: {fileID: 9009885714939082622} + m_Layer: 5 + m_Name: Amount + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &7055246610904000900 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5112930609778248145} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 4532772891192604847} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &7897151942640557818 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5112930609778248145} + m_CullTransparentMesh: 1 +--- !u!114 &9009885714939082622 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5112930609778248145} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: '-' + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294967295 + m_fontColor: {r: 1, g: 1, b: 1, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 24 + m_fontSizeBase: 24 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &5346749973347251154 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8358955473714987148} + - component: {fileID: 7580228993619882828} + - component: {fileID: 6046904525841126385} + - component: {fileID: 2823423808506140996} + - component: {fileID: 2364620168419014579} + - component: {fileID: 2120143446010795323} + m_Layer: 5 + m_Name: Scroll View + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8358955473714987148 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5346749973347251154} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1560834978935093154} + - {fileID: 5201747520396966631} + - {fileID: 4572433871481564286} + m_Father: {fileID: 5538285658628802168} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &7580228993619882828 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5346749973347251154} + m_CullTransparentMesh: 1 +--- !u!114 &6046904525841126385 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5346749973347251154} m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} @@ -2609,7 +2823,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} m_Name: m_EditorClassIdentifier: - m_Content: {fileID: 3995018089020746221} + m_Content: {fileID: 5412731277496809935} m_Horizontal: 1 m_Vertical: 1 m_MovementType: 1 @@ -2647,7 +2861,7 @@ MonoBehaviour: m_FlexibleWidth: -1 m_FlexibleHeight: 1 m_LayoutPriority: 1 ---- !u!114 &2174789502373950655 +--- !u!114 &2120143446010795323 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2656,12 +2870,12 @@ MonoBehaviour: m_GameObject: {fileID: 5346749973347251154} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e274f834c9d5e4bcaab969fc18ec8c61, type: 3} + m_Script: {fileID: 11500000, guid: 75f119064b224bbb941358391ceb37f3, type: 3} m_Name: m_EditorClassIdentifier: m_ScrollRect: {fileID: 2823423808506140996} - m_Content: {fileID: 3995018089020746221} - m_ItemPrefab: {fileID: 7181826344900980376} + m_Content: {fileID: 5412731277496809935} + m_ItemPrefab: {fileID: 9123924793269126972} --- !u!1 &5454163398894456646 GameObject: m_ObjectHideFlags: 0 @@ -2898,7 +3112,7 @@ MonoBehaviour: m_OnValueChanged: m_PersistentCalls: m_Calls: [] ---- !u!1 &5964746467181279940 +--- !u!1 &5753718908342561570 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -2906,171 +3120,150 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 4318440430780900554} - - component: {fileID: 9117144338130649718} - - component: {fileID: 4822491426580628933} + - component: {fileID: 4532772891192604847} + - component: {fileID: 5680392226221019553} + - component: {fileID: 4578008084743046663} + - component: {fileID: 7904021599841467274} + - component: {fileID: 8517820320453187916} + - component: {fileID: 6134370774580139122} m_Layer: 5 - m_Name: Item Label + m_Name: Properties m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &4318440430780900554 +--- !u!224 &4532772891192604847 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5964746467181279940} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_GameObject: {fileID: 5753718908342561570} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 2209163409292639131} - m_RootOrder: 2 + m_Children: + - {fileID: 6468990651177707383} + - {fileID: 7055246610904000900} + - {fileID: 5667147991621763300} + m_Father: {fileID: 3041820411594759372} + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 5, y: -0.5} - m_SizeDelta: {x: -30, y: -3} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &9117144338130649718 -CanvasRenderer: +--- !u!223 &5680392226221019553 +Canvas: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5964746467181279940} - m_CullTransparentMesh: 1 ---- !u!114 &4822491426580628933 + m_GameObject: {fileID: 5753718908342561570} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 2 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 25 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!114 &4578008084743046663 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5964746467181279940} + m_GameObject: {fileID: 5753718908342561570} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_text: Tropical Indigo - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4294967295 - m_fontColor: {r: 1, g: 1, b: 1, a: 1} - m_enableVertexGradient: 0 - m_colorMode: 3 - m_fontColorGradient: - topLeft: {r: 1, g: 1, b: 1, a: 1} - topRight: {r: 1, g: 1, b: 1, a: 1} - bottomLeft: {r: 1, g: 1, b: 1, a: 1} - bottomRight: {r: 1, g: 1, b: 1, a: 1} - m_fontColorGradientPreset: {fileID: 0} - m_spriteAsset: {fileID: 0} - m_tintAllSprites: 0 - m_StyleSheet: {fileID: 0} - m_TextStyleHashCode: -1183493901 - m_overrideHtmlColors: 0 - m_faceColor: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!114 &7904021599841467274 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5753718908342561570} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: serializedVersion: 2 - rgba: 4294967295 - m_fontSize: 20 - m_fontSizeBase: 20 - m_fontWeight: 400 - m_enableAutoSizing: 0 - m_fontSizeMin: 18 - m_fontSizeMax: 72 - m_fontStyle: 0 - m_HorizontalAlignment: 1 - m_VerticalAlignment: 512 - m_textAlignment: 65535 - m_characterSpacing: 0 - m_wordSpacing: 0 - m_lineSpacing: 0 - m_lineSpacingMax: 0 - m_paragraphSpacing: 0 - m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 - m_wordWrappingRatios: 0.4 - m_overflowMode: 0 - m_linkedTextComponent: {fileID: 0} - parentLinkedComponent: {fileID: 0} - m_enableKerning: 1 - m_enableExtraPadding: 0 - checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!1 &6431228327222472062 -GameObject: + m_Bits: 4294967295 +--- !u!114 &8517820320453187916 +MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2034935391238131732} - m_Layer: 5 - m_Name: Content - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &2034935391238131732 -RectTransform: + m_GameObject: {fileID: 5753718908342561570} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: -1 + m_FlexibleWidth: 1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!114 &6134370774580139122 +MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6431228327222472062} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2209163409292639131} - m_Father: {fileID: 4753754435874769715} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 40} - m_Pivot: {x: 0.5, y: 1} ---- !u!1 &6587735865923632524 + m_GameObject: {fileID: 5753718908342561570} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 3 + m_Spacing: 16 + m_ChildForceExpandWidth: 1 + m_ChildForceExpandHeight: 0 + m_ChildControlWidth: 1 + m_ChildControlHeight: 1 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!1 &5964746467181279940 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3078,51 +3271,51 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1703904101713240439} - - component: {fileID: 4945786671860153} - - component: {fileID: 1004618502816312996} + - component: {fileID: 4318440430780900554} + - component: {fileID: 9117144338130649718} + - component: {fileID: 4822491426580628933} m_Layer: 5 - m_Name: Name + m_Name: Item Label m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &1703904101713240439 +--- !u!224 &4318440430780900554 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6587735865923632524} + m_GameObject: {fileID: 5964746467181279940} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 5521470754286056976} - m_RootOrder: 0 + m_Father: {fileID: 2209163409292639131} + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 5, y: -0.5} + m_SizeDelta: {x: -30, y: -3} m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &4945786671860153 +--- !u!222 &9117144338130649718 CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6587735865923632524} + m_GameObject: {fileID: 5964746467181279940} m_CullTransparentMesh: 1 ---- !u!114 &1004618502816312996 +--- !u!114 &4822491426580628933 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6587735865923632524} + m_GameObject: {fileID: 5964746467181279940} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} @@ -3136,7 +3329,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: Name + m_text: Tropical Indigo m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -3163,13 +3356,13 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 32 - m_fontSizeBase: 32 + m_fontSize: 20 + m_fontSizeBase: 20 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 - m_fontStyle: 1 + m_fontStyle: 0 m_HorizontalAlignment: 1 m_VerticalAlignment: 512 m_textAlignment: 65535 @@ -3205,7 +3398,7 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!1 &6627609915088320987 +--- !u!1 &6431228327222472062 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3213,133 +3406,35 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 3565483341480360257} - - component: {fileID: 6841910369472274399} - - component: {fileID: 5568153142124100944} + - component: {fileID: 2034935391238131732} m_Layer: 5 - m_Name: Amount + m_Name: Content m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!224 &3565483341480360257 +--- !u!224 &2034935391238131732 RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6627609915088320987} + m_GameObject: {fileID: 6431228327222472062} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 5521470754286056976} - m_RootOrder: 1 + m_Children: + - {fileID: 2209163409292639131} + m_Father: {fileID: 4753754435874769715} + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &6841910369472274399 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6627609915088320987} - m_CullTransparentMesh: 1 ---- !u!114 &5568153142124100944 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6627609915088320987} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_text: - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4294967295 - m_fontColor: {r: 1, g: 1, b: 1, a: 1} - m_enableVertexGradient: 0 - m_colorMode: 3 - m_fontColorGradient: - topLeft: {r: 1, g: 1, b: 1, a: 1} - topRight: {r: 1, g: 1, b: 1, a: 1} - bottomLeft: {r: 1, g: 1, b: 1, a: 1} - bottomRight: {r: 1, g: 1, b: 1, a: 1} - m_fontColorGradientPreset: {fileID: 0} - m_spriteAsset: {fileID: 0} - m_tintAllSprites: 0 - m_StyleSheet: {fileID: 0} - m_TextStyleHashCode: -1183493901 - m_overrideHtmlColors: 0 - m_faceColor: - serializedVersion: 2 - rgba: 4294967295 - m_fontSize: 24 - m_fontSizeBase: 24 - m_fontWeight: 400 - m_enableAutoSizing: 0 - m_fontSizeMin: 18 - m_fontSizeMax: 72 - m_fontStyle: 0 - m_HorizontalAlignment: 1 - m_VerticalAlignment: 512 - m_textAlignment: 65535 - m_characterSpacing: 0 - m_wordSpacing: 0 - m_lineSpacing: 0 - m_lineSpacingMax: 0 - m_paragraphSpacing: 0 - m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 - m_wordWrappingRatios: 0.4 - m_overflowMode: 0 - m_linkedTextComponent: {fileID: 0} - parentLinkedComponent: {fileID: 0} - m_enableKerning: 1 - m_enableExtraPadding: 0 - checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} + m_SizeDelta: {x: 0, y: 40} + m_Pivot: {x: 0.5, y: 1} --- !u!1 &6688281564962546540 GameObject: m_ObjectHideFlags: 0 @@ -3534,315 +3629,118 @@ MonoBehaviour: m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 1 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 0 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_baseMaterial: {fileID: 0} - m_maskOffset: {x: 0, y: 0, z: 0, w: 0} ---- !u!114 &8626776702459104582 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6755584394337994425} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreLayout: 0 - m_MinWidth: -1 - m_MinHeight: -1 - m_PreferredWidth: -1 - m_PreferredHeight: -1 - m_FlexibleWidth: 1 - m_FlexibleHeight: -1 - m_LayoutPriority: 1 ---- !u!1 &7117463256386199805 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4374146438131124153} - m_Layer: 5 - m_Name: Sliding Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &4374146438131124153 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7117463256386199805} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2133540043008700952} - m_Father: {fileID: 8828990102417367453} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &7164278370335668412 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 768638068607325464} - m_Layer: 5 - m_Name: Sliding Area - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &768638068607325464 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7164278370335668412} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 2602276242752267194} - m_Father: {fileID: 4572433871481564286} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -20, y: -20} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!1 &7181826344900980376 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6116018892486565038} - - component: {fileID: 7128034387661637353} - - component: {fileID: 2366167208346955794} - - component: {fileID: 2308510198628877101} - - component: {fileID: 8860545491911896429} - - component: {fileID: 2122244342755322900} - - component: {fileID: 1173957075368797073} - - component: {fileID: 1434711093444192206} - - component: {fileID: 8120807956211276150} - m_Layer: 5 - m_Name: StackObject - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &6116018892486565038 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7181826344900980376} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 124898515646383462} - m_Father: {fileID: 3995018089020746221} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 300} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!223 &7128034387661637353 -Canvas: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7181826344900980376} - m_Enabled: 1 - serializedVersion: 3 - m_RenderMode: 2 - m_Camera: {fileID: 0} - m_PlaneDistance: 100 - m_PixelPerfect: 0 - m_ReceivesEvents: 1 - m_OverrideSorting: 0 - m_OverridePixelPerfect: 0 - m_SortingBucketNormalizedSize: 0 - m_AdditionalShaderChannelsFlag: 25 - m_SortingLayerID: 0 - m_SortingOrder: 0 - m_TargetDisplay: 0 ---- !u!114 &2366167208346955794 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7181826344900980376} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} - m_Name: - m_EditorClassIdentifier: - m_UiScaleMode: 0 - m_ReferencePixelsPerUnit: 100 - m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} - m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 0 - m_PhysicalUnit: 3 - m_FallbackScreenDPI: 96 - m_DefaultSpriteDPI: 96 - m_DynamicPixelsPerUnit: 1 - m_PresetInfoIsWorld: 0 ---- !u!114 &2308510198628877101 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7181826344900980376} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} - m_Name: - m_EditorClassIdentifier: - m_IgnoreReversedGraphics: 1 - m_BlockingObjects: 0 - m_BlockingMask: - serializedVersion: 2 - m_Bits: 4294967295 ---- !u!114 &8860545491911896429 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!114 &8626776702459104582 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7181826344900980376} + m_GameObject: {fileID: 6755584394337994425} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: ea2b663ad37114ef59033f8811724008, type: 3} + m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} m_Name: m_EditorClassIdentifier: - m_NameText: {fileID: 1004618502816312996} - m_AmountText: {fileID: 5568153142124100944} - m_CountText: {fileID: 6320394127019380426} - m_Image: {fileID: 4306670692357489288} ---- !u!222 &2122244342755322900 -CanvasRenderer: + m_IgnoreLayout: 0 + m_MinWidth: -1 + m_MinHeight: -1 + m_PreferredWidth: -1 + m_PreferredHeight: -1 + m_FlexibleWidth: 1 + m_FlexibleHeight: -1 + m_LayoutPriority: 1 +--- !u!1 &7117463256386199805 +GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7181826344900980376} - m_CullTransparentMesh: 1 ---- !u!114 &1173957075368797073 -MonoBehaviour: + serializedVersion: 6 + m_Component: + - component: {fileID: 4374146438131124153} + m_Layer: 5 + m_Name: Sliding Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &4374146438131124153 +RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7181826344900980376} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: d0b148fe25e99eb48b9724523833bab1, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Delegates: - - eventID: 4 - callback: - m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 1434711093444192206} - m_TargetAssemblyTypeName: HyperCasual.Runner.ClickableView, Unity.Hypercasual - m_MethodName: OnPointerClick - m_Mode: 0 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 ---- !u!114 &1434711093444192206 -MonoBehaviour: + m_GameObject: {fileID: 7117463256386199805} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2133540043008700952} + m_Father: {fileID: 8828990102417367453} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -20, y: -20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &7164278370335668412 +GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7181826344900980376} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 54c618069a0034892a451fd5ce937780, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!61 &8120807956211276150 -BoxCollider2D: + serializedVersion: 6 + m_Component: + - component: {fileID: 768638068607325464} + m_Layer: 5 + m_Name: Sliding Area + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &768638068607325464 +RectTransform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7181826344900980376} - m_Enabled: 1 - m_Density: 1 - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_UsedByEffector: 0 - m_UsedByComposite: 0 - m_Offset: {x: 0, y: 0} - m_SpriteTilingProperty: - border: {x: 0, y: 0, z: 0, w: 0} - pivot: {x: 0, y: 0} - oldSize: {x: 0, y: 0} - newSize: {x: 0, y: 0} - adaptiveTilingThreshold: 0 - drawMode: 0 - adaptiveTiling: 0 - m_AutoTiling: 0 - serializedVersion: 2 - m_Size: {x: 1, y: 1} - m_EdgeRadius: 0 + m_GameObject: {fileID: 7164278370335668412} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2602276242752267194} + m_Father: {fileID: 4572433871481564286} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -20, y: -20} + m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &7349057302687351786 GameObject: m_ObjectHideFlags: 0 @@ -4138,8 +4036,8 @@ MonoBehaviour: m_Balance: {fileID: 8026118861294500791} m_ColoursDropdown: {fileID: 8004575839892644515} m_SpeedDropdown: {fileID: 2828885607642083255} - m_ScrollView: {fileID: 2174789502373950655} - m_StackObj: {fileID: 8860545491911896429} + m_ScrollView: {fileID: 2120143446010795323} + m_StackObj: {fileID: 6351333064208322446} --- !u!1 &7518897395523842868 GameObject: m_ObjectHideFlags: 0 @@ -4761,122 +4659,240 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 2a4db7a114972834c8e4117be1d82ba3, type: 3} m_Name: m_EditorClassIdentifier: - m_Navigation: - m_Mode: 3 - m_WrapAround: 0 - m_SelectOnUp: {fileID: 0} - m_SelectOnDown: {fileID: 0} - m_SelectOnLeft: {fileID: 0} - m_SelectOnRight: {fileID: 0} - m_Transition: 1 - m_Colors: - m_NormalColor: {r: 1, g: 1, b: 1, a: 1} - m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} - m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} - m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} - m_ColorMultiplier: 1 - m_FadeDuration: 0.1 - m_SpriteState: - m_HighlightedSprite: {fileID: 0} - m_PressedSprite: {fileID: 0} - m_SelectedSprite: {fileID: 0} - m_DisabledSprite: {fileID: 0} - m_AnimationTriggers: - m_NormalTrigger: Normal - m_HighlightedTrigger: Highlighted - m_PressedTrigger: Pressed - m_SelectedTrigger: Selected - m_DisabledTrigger: Disabled - m_Interactable: 1 - m_TargetGraphic: {fileID: 2408783748394484745} - m_HandleRect: {fileID: 2133540043008700952} - m_Direction: 2 - m_Value: 0 - m_Size: 1 - m_NumberOfSteps: 0 - m_OnValueChanged: - m_PersistentCalls: - m_Calls: [] ---- !u!1 &9098808456760454047 -GameObject: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 2408783748394484745} + m_HandleRect: {fileID: 2133540043008700952} + m_Direction: 2 + m_Value: 0 + m_Size: 1 + m_NumberOfSteps: 0 + m_OnValueChanged: + m_PersistentCalls: + m_Calls: [] +--- !u!1 &9123924793269126972 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1090722349058935065} + - component: {fileID: 2243758525313256642} + - component: {fileID: 3461188420524507038} + - component: {fileID: 5105447160573218337} + - component: {fileID: 6910138252826639546} + - component: {fileID: 7566989082854504751} + - component: {fileID: 6677587421774007650} + - component: {fileID: 344397273071144584} + - component: {fileID: 6351333064208322446} + m_Layer: 5 + m_Name: StackObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1090722349058935065 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9123924793269126972} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 3041820411594759372} + m_Father: {fileID: 5412731277496809935} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!223 &2243758525313256642 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9123924793269126972} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 2 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 25 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!114 &3461188420524507038 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9123924793269126972} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!114 &5105447160573218337 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9123924793269126972} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!222 &6910138252826639546 +CanvasRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 3995018089020746221} - - component: {fileID: 5077597802358542606} - - component: {fileID: 3968692256837451674} - m_Layer: 5 - m_Name: List - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &3995018089020746221 -RectTransform: + m_GameObject: {fileID: 9123924793269126972} + m_CullTransparentMesh: 1 +--- !u!114 &7566989082854504751 +MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 9098808456760454047} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: - - {fileID: 6116018892486565038} - m_Father: {fileID: 1560834978935093154} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0, y: 1} ---- !u!114 &5077597802358542606 + m_GameObject: {fileID: 9123924793269126972} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0b148fe25e99eb48b9724523833bab1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Delegates: + - eventID: 4 + callback: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 6677587421774007650} + m_TargetAssemblyTypeName: HyperCasual.Runner.ClickableView, Unity.Hypercasual + m_MethodName: OnPointerClick + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &6677587421774007650 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 9098808456760454047} + m_GameObject: {fileID: 9123924793269126972} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Script: {fileID: 11500000, guid: 54c618069a0034892a451fd5ce937780, type: 3} m_Name: m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 0 - m_Spacing: 8 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 1 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 1 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &3968692256837451674 +--- !u!61 &344397273071144584 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9123924793269126972} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0, y: 0} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 1, y: 1} + m_EdgeRadius: 0 +--- !u!114 &6351333064208322446 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 9098808456760454047} + m_GameObject: {fileID: 9123924793269126972} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Script: {fileID: 11500000, guid: ea2b663ad37114ef59033f8811724008, type: 3} m_Name: m_EditorClassIdentifier: - m_HorizontalFit: 0 - m_VerticalFit: 1 + m_NameText: {fileID: 2387680068008663955} + m_AmountText: {fileID: 9009885714939082622} + m_CountText: {fileID: 6320394127019380426} + m_Image: {fileID: 8228089853991442592} --- !u!1001 &182049691359175541 PrefabInstance: m_ObjectHideFlags: 0 @@ -5050,17 +5066,17 @@ PrefabInstance: - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 15.63 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -5070,7 +5086,7 @@ PrefabInstance: - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -20 objectReference: {fileID: 0} - target: {fileID: 2910761123095850727, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -5080,22 +5096,22 @@ PrefabInstance: - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 109.07 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -20 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -5222,156 +5238,151 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 2df87bdd7bd69406c9575d6917ea550b, type: 3} m_Name: m_EditorClassIdentifier: ---- !u!1001 &8440186914726244927 +--- !u!1001 &4383624535371573271 PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 124898515646383462} + m_TransformParent: {fileID: 3041820411594759372} m_Modifications: - - target: {fileID: 2802840194888303849, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_Material - value: + propertyPath: m_RootOrder + value: 0 objectReference: {fileID: 0} - - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchorMax.x - value: 1 + propertyPath: m_LocalPosition.x + value: 0 objectReference: {fileID: 0} - - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchorMax.y - value: 1 + propertyPath: m_LocalPosition.y + value: 0 objectReference: {fileID: 0} - - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_SizeDelta.x + propertyPath: m_LocalPosition.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_SizeDelta.y - value: 0 + propertyPath: m_LocalRotation.w + value: 1 objectReference: {fileID: 0} - - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchoredPosition.x + propertyPath: m_LocalRotation.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchoredPosition.y + propertyPath: m_LocalRotation.y value: 0 objectReference: {fileID: 0} - - target: {fileID: 6797505565770832786, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_Material - value: + propertyPath: m_LocalRotation.z + value: 0 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_Pivot.x - value: 0.5 + propertyPath: m_LocalEulerAnglesHint.x + value: 0 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_Pivot.y - value: 0.5 + propertyPath: m_LocalEulerAnglesHint.y + value: 0 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 1745491022330559641, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_RootOrder + propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 2802840194888303849, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchorMax.x - value: 0 + propertyPath: m_Material + value: objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 3165791672614383812, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchorMax.y - value: 0 + propertyPath: m_Pivot.y + value: 0.5 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchorMin.x - value: 0 + propertyPath: m_AnchorMax.x + value: 1 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchorMin.y - value: 0 + propertyPath: m_AnchorMax.y + value: 1 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, type: 3} propertyPath: m_SizeDelta.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, type: 3} propertyPath: m_SizeDelta.y value: 0 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, - type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_LocalPosition.y + propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 4304493079219490021, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_LocalPosition.z + propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} - - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, + - target: {fileID: 6797505565770832786, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_LocalRotation.w - value: 1 + propertyPath: m_Material + value: objectReference: {fileID: 0} - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_LocalRotation.x + propertyPath: m_RootOrder value: 0 objectReference: {fileID: 0} - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_LocalRotation.y + propertyPath: m_AnchorMax.x value: 0 objectReference: {fileID: 0} - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_LocalRotation.z + propertyPath: m_AnchorMax.y value: 0 objectReference: {fileID: 0} - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchoredPosition.x + propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_AnchoredPosition.y + propertyPath: m_SizeDelta.x value: 0 objectReference: {fileID: 0} - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_LocalEulerAnglesHint.x + propertyPath: m_SizeDelta.y value: 0 objectReference: {fileID: 0} - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_LocalEulerAnglesHint.y + propertyPath: m_AnchoredPosition.x value: 0 objectReference: {fileID: 0} - target: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - propertyPath: m_LocalEulerAnglesHint.z + propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} - target: {fileID: 7672776485191783131, guid: f26a21f683ab2449193aed046ac368ea, @@ -5401,19 +5412,19 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: f26a21f683ab2449193aed046ac368ea, type: 3} ---- !u!1 &2259325731383009508 stripped +--- !u!1 &6246192266093918924 stripped GameObject: m_CorrespondingSourceObject: {fileID: 7672776485191783131, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - m_PrefabInstance: {fileID: 8440186914726244927} + m_PrefabInstance: {fileID: 4383624535371573271} m_PrefabAsset: {fileID: 0} ---- !u!114 &745943049487286792 +--- !u!114 &5608333404805291913 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2259325731383009508} + m_GameObject: {fileID: 6246192266093918924} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3} @@ -5422,24 +5433,24 @@ MonoBehaviour: m_IgnoreLayout: 0 m_MinWidth: -1 m_MinHeight: -1 - m_PreferredWidth: 250 - m_PreferredHeight: 250 + m_PreferredWidth: 300 + m_PreferredHeight: 300 m_FlexibleWidth: -1 m_FlexibleHeight: -1 m_LayoutPriority: 1 ---- !u!224 &3142198370082745429 stripped +--- !u!224 &7092895398745732733 stripped RectTransform: m_CorrespondingSourceObject: {fileID: 6825985352012897898, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - m_PrefabInstance: {fileID: 8440186914726244927} + m_PrefabInstance: {fileID: 4383624535371573271} m_PrefabAsset: {fileID: 0} ---- !u!114 &4306670692357489288 stripped +--- !u!114 &8228089853991442592 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 5685178161560924343, guid: f26a21f683ab2449193aed046ac368ea, type: 3} - m_PrefabInstance: {fileID: 8440186914726244927} + m_PrefabInstance: {fileID: 4383624535371573271} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2259325731383009508} + m_GameObject: {fileID: 6246192266093918924} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 4650ade97af644a5d95339f97ce6eae2, type: 3} diff --git a/Assets/Shared/Prefabs/UI/ShopScreen.prefab b/Assets/Shared/Prefabs/UI/ShopScreen.prefab index 744ec189..d2fe1dcb 100644 --- a/Assets/Shared/Prefabs/UI/ShopScreen.prefab +++ b/Assets/Shared/Prefabs/UI/ShopScreen.prefab @@ -368,8 +368,8 @@ MonoBehaviour: m_TargetGraphic: {fileID: 4986908211239487415} m_HandleRect: {fileID: 2602276242752267194} m_Direction: 2 - m_Value: 1 - m_Size: 0.7740741 + m_Value: 0 + m_Size: 1 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: @@ -556,6 +556,86 @@ MonoBehaviour: m_ChildScaleWidth: 0 m_ChildScaleHeight: 0 m_ReverseArrangement: 0 +--- !u!1 &2476679144429538895 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1496457830315995487} + - component: {fileID: 5642318067728982907} + - component: {fileID: 4849619024121814302} + m_Layer: 5 + m_Name: GameObject + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1496457830315995487 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2476679144429538895} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2121155614746076509} + - {fileID: 2418811689362425478} + m_Father: {fileID: 5164312704210014232} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 1, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: 0, y: 20} + m_SizeDelta: {x: 0, y: 40} + m_Pivot: {x: 1, y: 1} +--- !u!114 &5642318067728982907 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2476679144429538895} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Padding: + m_Left: 0 + m_Right: 0 + m_Top: 0 + m_Bottom: 0 + m_ChildAlignment: 0 + m_Spacing: 20 + m_ChildForceExpandWidth: 0 + m_ChildForceExpandHeight: 0 + m_ChildControlWidth: 0 + m_ChildControlHeight: 0 + m_ChildScaleWidth: 0 + m_ChildScaleHeight: 0 + m_ReverseArrangement: 0 +--- !u!114 &4849619024121814302 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2476679144429538895} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 2 + m_VerticalFit: 0 --- !u!1 &3947483479079862780 GameObject: m_ObjectHideFlags: 0 @@ -587,8 +667,7 @@ RectTransform: m_Children: - {fileID: 3566954670224652294} - {fileID: 8897836502386347909} - - {fileID: 2121155614746076509} - - {fileID: 2418811689362425478} + - {fileID: 1496457830315995487} m_Father: {fileID: 5538285658628802168} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -2374,22 +2453,22 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 5164312704210014232} + m_TransformParent: {fileID: 1496457830315995487} m_Modifications: - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_SizeDelta.x - value: 15.63 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -2399,7 +2478,7 @@ PrefabInstance: - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchoredPosition.y - value: -20 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2910761123095850727, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -2409,22 +2488,22 @@ PrefabInstance: - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_SizeDelta.x - value: 109.07 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchoredPosition.y - value: -20 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -2439,27 +2518,27 @@ PrefabInstance: - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_RootOrder - value: 2 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMax.x - value: 0.9620001 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMax.y - value: 0.45000002 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMin.x - value: 0.9620001 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMin.y - value: 0.45000002 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -2509,12 +2588,12 @@ PrefabInstance: - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchoredPosition.x - value: -64.59863 + value: 132.7 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchoredPosition.y - value: 2 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -2561,7 +2640,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: - m_TransformParent: {fileID: 5164312704210014232} + m_TransformParent: {fileID: 1496457830315995487} m_Modifications: - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} @@ -2576,27 +2655,27 @@ PrefabInstance: - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_RootOrder - value: 3 + value: 1 objectReference: {fileID: 0} - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchorMax.x - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchorMin.x - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} @@ -2646,7 +2725,7 @@ PrefabInstance: - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} propertyPath: m_AnchoredPosition.x - value: -80 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8790377886039207152, guid: e2817ba29ba59484a96ceffea6c5abf2, type: 3} diff --git a/Assets/Shared/Scripts/Data/API/Search.meta b/Assets/Shared/Scripts/Data/API/ImmutableApi.meta similarity index 100% rename from Assets/Shared/Scripts/Data/API/Search.meta rename to Assets/Shared/Scripts/Data/API/ImmutableApi.meta diff --git a/Assets/Shared/Scripts/Data/API/Search/.gitignore b/Assets/Shared/Scripts/Data/API/ImmutableApi/.gitignore similarity index 100% rename from Assets/Shared/Scripts/Data/API/Search/.gitignore rename to Assets/Shared/Scripts/Data/API/ImmutableApi/.gitignore diff --git a/Assets/Shared/Scripts/Data/API/Search/.openapi-generator-ignore b/Assets/Shared/Scripts/Data/API/ImmutableApi/.openapi-generator-ignore similarity index 100% rename from Assets/Shared/Scripts/Data/API/Search/.openapi-generator-ignore rename to Assets/Shared/Scripts/Data/API/ImmutableApi/.openapi-generator-ignore diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/.openapi-generator/FILES b/Assets/Shared/Scripts/Data/API/ImmutableApi/.openapi-generator/FILES new file mode 100644 index 00000000..e3d0f717 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/.openapi-generator/FILES @@ -0,0 +1,526 @@ +.gitignore +.openapi-generator-ignore +README.md +api/openapi.yaml +docs/APIError400.md +docs/APIError401.md +docs/APIError403.md +docs/APIError404.md +docs/APIError409.md +docs/APIError429.md +docs/APIError500.md +docs/APIError501.md +docs/ActiveOrderStatus.md +docs/ActivitiesApi.md +docs/Activity.md +docs/ActivityAsset.md +docs/ActivityDetails.md +docs/ActivityNFT.md +docs/ActivityNativeToken.md +docs/ActivityToken.md +docs/ActivityType.md +docs/AssetCollectionItem.md +docs/AssetVerificationStatus.md +docs/BasicAPIError.md +docs/BidResult.md +docs/BlockchainMetadata.md +docs/Burn.md +docs/Call.md +docs/CancelOrdersRequestBody.md +docs/CancelOrdersResult.md +docs/CancelOrdersResultData.md +docs/CancelledOrderStatus.md +docs/Chain.md +docs/ChainWithDetails.md +docs/ChainsApi.md +docs/Collection.md +docs/CollectionBidResult.md +docs/CollectionContractType.md +docs/CollectionMetadata.md +docs/CollectionsApi.md +docs/CraftingApi.md +docs/CreateBidRequestBody.md +docs/CreateCollectionBidRequestBody.md +docs/CreateListingRequestBody.md +docs/CreateMintRequestRequest.md +docs/CreateMintRequestResult.md +docs/Deposit.md +docs/ERC1155CollectionItem.md +docs/ERC1155Item.md +docs/ERC20Item.md +docs/ERC721CollectionItem.md +docs/ERC721Item.md +docs/ExpiredOrderStatus.md +docs/FailedOrderCancellation.md +docs/Fee.md +docs/FillStatus.md +docs/FilledOrderStatus.md +docs/FulfillableOrder.md +docs/FulfillmentData200Response.md +docs/FulfillmentData200ResponseResult.md +docs/FulfillmentDataRequest.md +docs/GetActivityResult.md +docs/GetCollectionResult.md +docs/GetLinkedAddressesRes.md +docs/GetMetadataResult.md +docs/GetMintRequestResult.md +docs/GetNFTResult.md +docs/GetTokenResult.md +docs/InactiveOrderStatus.md +docs/Item.md +docs/LastTrade.md +docs/LinkWalletV2Request.md +docs/ListActivitiesResult.md +docs/ListBidsResult.md +docs/ListChainsResult.md +docs/ListCollectionBidsResult.md +docs/ListCollectionOwnersResult.md +docs/ListCollectionsResult.md +docs/ListListingsResult.md +docs/ListMetadataResult.md +docs/ListMintRequestsResult.md +docs/ListNFTOwnersResult.md +docs/ListNFTsByOwnerResult.md +docs/ListNFTsResult.md +docs/ListTokensResult.md +docs/ListTradeResult.md +docs/Listing.md +docs/ListingResult.md +docs/Market.md +docs/MarketNft.md +docs/MarketPriceDetails.md +docs/MarketPriceDetailsToken.md +docs/MarketPriceERC20Token.md +docs/MarketPriceFees.md +docs/MarketPriceNativeToken.md +docs/Metadata.md +docs/MetadataApi.md +docs/MetadataRefreshRateLimitResult.md +docs/Mint.md +docs/MintAsset.md +docs/MintRequestErrorMessage.md +docs/MintRequestStatus.md +docs/NFT.md +docs/NFTBundle.md +docs/NFTContractType.md +docs/NFTMetadataAttribute.md +docs/NFTMetadataAttributeValue.md +docs/NFTMetadataRequest.md +docs/NFTOwner.md +docs/NFTQuoteResult.md +docs/NFTSale.md +docs/NFTWithBalance.md +docs/NFTWithOwner.md +docs/NFTWithStack.md +docs/NativeItem.md +docs/NftOwnersApi.md +docs/NftsApi.md +docs/OperatorAllowlistContractStatus.md +docs/OperatorAllowlistContractStatusInternal.md +docs/OperatorAllowlistStatus.md +docs/OperatorAllowlistStatusDetails.md +docs/OperatorAllowlistStatusRequested.md +docs/OperatorAllowlistStatusUpdated.md +docs/Order.md +docs/OrderStatus.md +docs/OrderStatusName.md +docs/OrdersApi.md +docs/OrganisationTier.md +docs/Page.md +docs/PassportApi.md +docs/PassportProfileApi.md +docs/PaymentAmount.md +docs/PendingOrderStatus.md +docs/PricingApi.md +docs/ProtocolData.md +docs/QuotesForNFTsResult.md +docs/QuotesForStacksResult.md +docs/RefreshCollectionMetadataRequest.md +docs/RefreshCollectionMetadataResult.md +docs/RefreshMetadataByID.md +docs/RefreshMetadataByIDRequest.md +docs/RefreshMetadataByTokenID.md +docs/RefreshNFTMetadataByTokenIDRequest.md +docs/RefreshableNFTAttributes.md +docs/SaleFee.md +docs/SalePayment.md +docs/SalePaymentToken.md +docs/SearchNFTsResult.md +docs/SearchStacksResult.md +docs/SignCraftingRequest.md +docs/SignCraftingRequestMultiCaller.md +docs/SignCraftingResult.md +docs/Stack.md +docs/StackBundle.md +docs/StackQuoteResult.md +docs/StacksApi.md +docs/Token.md +docs/TokenContractType.md +docs/TokensApi.md +docs/Trade.md +docs/TradeBlockchainMetadata.md +docs/TradeResult.md +docs/Transfer.md +docs/UnfulfillableOrder.md +docs/UserInfo.md +docs/VerificationRequest.md +docs/VerificationRequestContractType.md +docs/VerificationRequestInternal.md +docs/VerificationRequestStatus.md +docs/Wallet.md +docs/Withdrawal.md +git_push.sh +src/Immutable.Api.Test/Api/ActivitiesApiTests.cs +src/Immutable.Api.Test/Api/ChainsApiTests.cs +src/Immutable.Api.Test/Api/CollectionsApiTests.cs +src/Immutable.Api.Test/Api/CraftingApiTests.cs +src/Immutable.Api.Test/Api/MetadataApiTests.cs +src/Immutable.Api.Test/Api/NftOwnersApiTests.cs +src/Immutable.Api.Test/Api/NftsApiTests.cs +src/Immutable.Api.Test/Api/OrdersApiTests.cs +src/Immutable.Api.Test/Api/PassportApiTests.cs +src/Immutable.Api.Test/Api/PassportProfileApiTests.cs +src/Immutable.Api.Test/Api/PricingApiTests.cs +src/Immutable.Api.Test/Api/StacksApiTests.cs +src/Immutable.Api.Test/Api/TokensApiTests.cs +src/Immutable.Api.Test/Immutable.Api.Test.asmdef +src/Immutable.Api.Test/Model/APIError400Tests.cs +src/Immutable.Api.Test/Model/APIError401Tests.cs +src/Immutable.Api.Test/Model/APIError403Tests.cs +src/Immutable.Api.Test/Model/APIError404Tests.cs +src/Immutable.Api.Test/Model/APIError409Tests.cs +src/Immutable.Api.Test/Model/APIError429Tests.cs +src/Immutable.Api.Test/Model/APIError500Tests.cs +src/Immutable.Api.Test/Model/APIError501Tests.cs +src/Immutable.Api.Test/Model/ActiveOrderStatusTests.cs +src/Immutable.Api.Test/Model/ActivityAssetTests.cs +src/Immutable.Api.Test/Model/ActivityDetailsTests.cs +src/Immutable.Api.Test/Model/ActivityNFTTests.cs +src/Immutable.Api.Test/Model/ActivityNativeTokenTests.cs +src/Immutable.Api.Test/Model/ActivityTests.cs +src/Immutable.Api.Test/Model/ActivityTokenTests.cs +src/Immutable.Api.Test/Model/ActivityTypeTests.cs +src/Immutable.Api.Test/Model/AssetCollectionItemTests.cs +src/Immutable.Api.Test/Model/AssetVerificationStatusTests.cs +src/Immutable.Api.Test/Model/BasicAPIErrorTests.cs +src/Immutable.Api.Test/Model/BidResultTests.cs +src/Immutable.Api.Test/Model/BlockchainMetadataTests.cs +src/Immutable.Api.Test/Model/BurnTests.cs +src/Immutable.Api.Test/Model/CallTests.cs +src/Immutable.Api.Test/Model/CancelOrdersRequestBodyTests.cs +src/Immutable.Api.Test/Model/CancelOrdersResultDataTests.cs +src/Immutable.Api.Test/Model/CancelOrdersResultTests.cs +src/Immutable.Api.Test/Model/CancelledOrderStatusTests.cs +src/Immutable.Api.Test/Model/ChainTests.cs +src/Immutable.Api.Test/Model/ChainWithDetailsTests.cs +src/Immutable.Api.Test/Model/CollectionBidResultTests.cs +src/Immutable.Api.Test/Model/CollectionContractTypeTests.cs +src/Immutable.Api.Test/Model/CollectionMetadataTests.cs +src/Immutable.Api.Test/Model/CollectionTests.cs +src/Immutable.Api.Test/Model/CreateBidRequestBodyTests.cs +src/Immutable.Api.Test/Model/CreateCollectionBidRequestBodyTests.cs +src/Immutable.Api.Test/Model/CreateListingRequestBodyTests.cs +src/Immutable.Api.Test/Model/CreateMintRequestRequestTests.cs +src/Immutable.Api.Test/Model/CreateMintRequestResultTests.cs +src/Immutable.Api.Test/Model/DepositTests.cs +src/Immutable.Api.Test/Model/ERC1155CollectionItemTests.cs +src/Immutable.Api.Test/Model/ERC1155ItemTests.cs +src/Immutable.Api.Test/Model/ERC20ItemTests.cs +src/Immutable.Api.Test/Model/ERC721CollectionItemTests.cs +src/Immutable.Api.Test/Model/ERC721ItemTests.cs +src/Immutable.Api.Test/Model/ExpiredOrderStatusTests.cs +src/Immutable.Api.Test/Model/FailedOrderCancellationTests.cs +src/Immutable.Api.Test/Model/FeeTests.cs +src/Immutable.Api.Test/Model/FillStatusTests.cs +src/Immutable.Api.Test/Model/FilledOrderStatusTests.cs +src/Immutable.Api.Test/Model/FulfillableOrderTests.cs +src/Immutable.Api.Test/Model/FulfillmentData200ResponseResultTests.cs +src/Immutable.Api.Test/Model/FulfillmentData200ResponseTests.cs +src/Immutable.Api.Test/Model/FulfillmentDataRequestTests.cs +src/Immutable.Api.Test/Model/GetActivityResultTests.cs +src/Immutable.Api.Test/Model/GetCollectionResultTests.cs +src/Immutable.Api.Test/Model/GetLinkedAddressesResTests.cs +src/Immutable.Api.Test/Model/GetMetadataResultTests.cs +src/Immutable.Api.Test/Model/GetMintRequestResultTests.cs +src/Immutable.Api.Test/Model/GetNFTResultTests.cs +src/Immutable.Api.Test/Model/GetTokenResultTests.cs +src/Immutable.Api.Test/Model/InactiveOrderStatusTests.cs +src/Immutable.Api.Test/Model/ItemTests.cs +src/Immutable.Api.Test/Model/LastTradeTests.cs +src/Immutable.Api.Test/Model/LinkWalletV2RequestTests.cs +src/Immutable.Api.Test/Model/ListActivitiesResultTests.cs +src/Immutable.Api.Test/Model/ListBidsResultTests.cs +src/Immutable.Api.Test/Model/ListChainsResultTests.cs +src/Immutable.Api.Test/Model/ListCollectionBidsResultTests.cs +src/Immutable.Api.Test/Model/ListCollectionOwnersResultTests.cs +src/Immutable.Api.Test/Model/ListCollectionsResultTests.cs +src/Immutable.Api.Test/Model/ListListingsResultTests.cs +src/Immutable.Api.Test/Model/ListMetadataResultTests.cs +src/Immutable.Api.Test/Model/ListMintRequestsResultTests.cs +src/Immutable.Api.Test/Model/ListNFTOwnersResultTests.cs +src/Immutable.Api.Test/Model/ListNFTsByOwnerResultTests.cs +src/Immutable.Api.Test/Model/ListNFTsResultTests.cs +src/Immutable.Api.Test/Model/ListTokensResultTests.cs +src/Immutable.Api.Test/Model/ListTradeResultTests.cs +src/Immutable.Api.Test/Model/ListingResultTests.cs +src/Immutable.Api.Test/Model/ListingTests.cs +src/Immutable.Api.Test/Model/MarketNftTests.cs +src/Immutable.Api.Test/Model/MarketPriceDetailsTests.cs +src/Immutable.Api.Test/Model/MarketPriceDetailsTokenTests.cs +src/Immutable.Api.Test/Model/MarketPriceERC20TokenTests.cs +src/Immutable.Api.Test/Model/MarketPriceFeesTests.cs +src/Immutable.Api.Test/Model/MarketPriceNativeTokenTests.cs +src/Immutable.Api.Test/Model/MarketTests.cs +src/Immutable.Api.Test/Model/MetadataRefreshRateLimitResultTests.cs +src/Immutable.Api.Test/Model/MetadataTests.cs +src/Immutable.Api.Test/Model/MintAssetTests.cs +src/Immutable.Api.Test/Model/MintRequestErrorMessageTests.cs +src/Immutable.Api.Test/Model/MintRequestStatusTests.cs +src/Immutable.Api.Test/Model/MintTests.cs +src/Immutable.Api.Test/Model/NFTBundleTests.cs +src/Immutable.Api.Test/Model/NFTContractTypeTests.cs +src/Immutable.Api.Test/Model/NFTMetadataAttributeTests.cs +src/Immutable.Api.Test/Model/NFTMetadataAttributeValueTests.cs +src/Immutable.Api.Test/Model/NFTMetadataRequestTests.cs +src/Immutable.Api.Test/Model/NFTOwnerTests.cs +src/Immutable.Api.Test/Model/NFTQuoteResultTests.cs +src/Immutable.Api.Test/Model/NFTSaleTests.cs +src/Immutable.Api.Test/Model/NFTTests.cs +src/Immutable.Api.Test/Model/NFTWithBalanceTests.cs +src/Immutable.Api.Test/Model/NFTWithOwnerTests.cs +src/Immutable.Api.Test/Model/NFTWithStackTests.cs +src/Immutable.Api.Test/Model/NativeItemTests.cs +src/Immutable.Api.Test/Model/OperatorAllowlistContractStatusInternalTests.cs +src/Immutable.Api.Test/Model/OperatorAllowlistContractStatusTests.cs +src/Immutable.Api.Test/Model/OperatorAllowlistStatusDetailsTests.cs +src/Immutable.Api.Test/Model/OperatorAllowlistStatusRequestedTests.cs +src/Immutable.Api.Test/Model/OperatorAllowlistStatusTests.cs +src/Immutable.Api.Test/Model/OperatorAllowlistStatusUpdatedTests.cs +src/Immutable.Api.Test/Model/OrderStatusNameTests.cs +src/Immutable.Api.Test/Model/OrderStatusTests.cs +src/Immutable.Api.Test/Model/OrderTests.cs +src/Immutable.Api.Test/Model/OrganisationTierTests.cs +src/Immutable.Api.Test/Model/PageTests.cs +src/Immutable.Api.Test/Model/PaymentAmountTests.cs +src/Immutable.Api.Test/Model/PendingOrderStatusTests.cs +src/Immutable.Api.Test/Model/ProtocolDataTests.cs +src/Immutable.Api.Test/Model/QuotesForNFTsResultTests.cs +src/Immutable.Api.Test/Model/QuotesForStacksResultTests.cs +src/Immutable.Api.Test/Model/RefreshCollectionMetadataRequestTests.cs +src/Immutable.Api.Test/Model/RefreshCollectionMetadataResultTests.cs +src/Immutable.Api.Test/Model/RefreshMetadataByIDRequestTests.cs +src/Immutable.Api.Test/Model/RefreshMetadataByIDTests.cs +src/Immutable.Api.Test/Model/RefreshMetadataByTokenIDTests.cs +src/Immutable.Api.Test/Model/RefreshNFTMetadataByTokenIDRequestTests.cs +src/Immutable.Api.Test/Model/RefreshableNFTAttributesTests.cs +src/Immutable.Api.Test/Model/SaleFeeTests.cs +src/Immutable.Api.Test/Model/SalePaymentTests.cs +src/Immutable.Api.Test/Model/SalePaymentTokenTests.cs +src/Immutable.Api.Test/Model/SearchNFTsResultTests.cs +src/Immutable.Api.Test/Model/SearchStacksResultTests.cs +src/Immutable.Api.Test/Model/SignCraftingRequestMultiCallerTests.cs +src/Immutable.Api.Test/Model/SignCraftingRequestTests.cs +src/Immutable.Api.Test/Model/SignCraftingResultTests.cs +src/Immutable.Api.Test/Model/StackBundleTests.cs +src/Immutable.Api.Test/Model/StackQuoteResultTests.cs +src/Immutable.Api.Test/Model/StackTests.cs +src/Immutable.Api.Test/Model/TokenContractTypeTests.cs +src/Immutable.Api.Test/Model/TokenTests.cs +src/Immutable.Api.Test/Model/TradeBlockchainMetadataTests.cs +src/Immutable.Api.Test/Model/TradeResultTests.cs +src/Immutable.Api.Test/Model/TradeTests.cs +src/Immutable.Api.Test/Model/TransferTests.cs +src/Immutable.Api.Test/Model/UnfulfillableOrderTests.cs +src/Immutable.Api.Test/Model/UserInfoTests.cs +src/Immutable.Api.Test/Model/VerificationRequestContractTypeTests.cs +src/Immutable.Api.Test/Model/VerificationRequestInternalTests.cs +src/Immutable.Api.Test/Model/VerificationRequestStatusTests.cs +src/Immutable.Api.Test/Model/VerificationRequestTests.cs +src/Immutable.Api.Test/Model/WalletTests.cs +src/Immutable.Api.Test/Model/WithdrawalTests.cs +src/Immutable.Api/Api/ActivitiesApi.cs +src/Immutable.Api/Api/ChainsApi.cs +src/Immutable.Api/Api/CollectionsApi.cs +src/Immutable.Api/Api/CraftingApi.cs +src/Immutable.Api/Api/MetadataApi.cs +src/Immutable.Api/Api/NftOwnersApi.cs +src/Immutable.Api/Api/NftsApi.cs +src/Immutable.Api/Api/OrdersApi.cs +src/Immutable.Api/Api/PassportApi.cs +src/Immutable.Api/Api/PassportProfileApi.cs +src/Immutable.Api/Api/PricingApi.cs +src/Immutable.Api/Api/StacksApi.cs +src/Immutable.Api/Api/TokensApi.cs +src/Immutable.Api/Client/ApiClient.cs +src/Immutable.Api/Client/ApiException.cs +src/Immutable.Api/Client/ApiResponse.cs +src/Immutable.Api/Client/ClientUtils.cs +src/Immutable.Api/Client/Configuration.cs +src/Immutable.Api/Client/ConnectionException.cs +src/Immutable.Api/Client/ExceptionFactory.cs +src/Immutable.Api/Client/GlobalConfiguration.cs +src/Immutable.Api/Client/IApiAccessor.cs +src/Immutable.Api/Client/IAsynchronousClient.cs +src/Immutable.Api/Client/IReadableConfiguration.cs +src/Immutable.Api/Client/ISynchronousClient.cs +src/Immutable.Api/Client/Multimap.cs +src/Immutable.Api/Client/OpenAPIDateConverter.cs +src/Immutable.Api/Client/RequestOptions.cs +src/Immutable.Api/Client/UnexpectedResponseException.cs +src/Immutable.Api/Client/WebRequestPathBuilder.cs +src/Immutable.Api/Immutable.Api.asmdef +src/Immutable.Api/Model/APIError400.cs +src/Immutable.Api/Model/APIError401.cs +src/Immutable.Api/Model/APIError403.cs +src/Immutable.Api/Model/APIError404.cs +src/Immutable.Api/Model/APIError409.cs +src/Immutable.Api/Model/APIError429.cs +src/Immutable.Api/Model/APIError500.cs +src/Immutable.Api/Model/APIError501.cs +src/Immutable.Api/Model/AbstractOpenAPISchema.cs +src/Immutable.Api/Model/ActiveOrderStatus.cs +src/Immutable.Api/Model/Activity.cs +src/Immutable.Api/Model/ActivityAsset.cs +src/Immutable.Api/Model/ActivityDetails.cs +src/Immutable.Api/Model/ActivityNFT.cs +src/Immutable.Api/Model/ActivityNativeToken.cs +src/Immutable.Api/Model/ActivityToken.cs +src/Immutable.Api/Model/ActivityType.cs +src/Immutable.Api/Model/AssetCollectionItem.cs +src/Immutable.Api/Model/AssetVerificationStatus.cs +src/Immutable.Api/Model/BasicAPIError.cs +src/Immutable.Api/Model/BidResult.cs +src/Immutable.Api/Model/BlockchainMetadata.cs +src/Immutable.Api/Model/Burn.cs +src/Immutable.Api/Model/Call.cs +src/Immutable.Api/Model/CancelOrdersRequestBody.cs +src/Immutable.Api/Model/CancelOrdersResult.cs +src/Immutable.Api/Model/CancelOrdersResultData.cs +src/Immutable.Api/Model/CancelledOrderStatus.cs +src/Immutable.Api/Model/Chain.cs +src/Immutable.Api/Model/ChainWithDetails.cs +src/Immutable.Api/Model/Collection.cs +src/Immutable.Api/Model/CollectionBidResult.cs +src/Immutable.Api/Model/CollectionContractType.cs +src/Immutable.Api/Model/CollectionMetadata.cs +src/Immutable.Api/Model/CreateBidRequestBody.cs +src/Immutable.Api/Model/CreateCollectionBidRequestBody.cs +src/Immutable.Api/Model/CreateListingRequestBody.cs +src/Immutable.Api/Model/CreateMintRequestRequest.cs +src/Immutable.Api/Model/CreateMintRequestResult.cs +src/Immutable.Api/Model/Deposit.cs +src/Immutable.Api/Model/ERC1155CollectionItem.cs +src/Immutable.Api/Model/ERC1155Item.cs +src/Immutable.Api/Model/ERC20Item.cs +src/Immutable.Api/Model/ERC721CollectionItem.cs +src/Immutable.Api/Model/ERC721Item.cs +src/Immutable.Api/Model/ExpiredOrderStatus.cs +src/Immutable.Api/Model/FailedOrderCancellation.cs +src/Immutable.Api/Model/Fee.cs +src/Immutable.Api/Model/FillStatus.cs +src/Immutable.Api/Model/FilledOrderStatus.cs +src/Immutable.Api/Model/FulfillableOrder.cs +src/Immutable.Api/Model/FulfillmentData200Response.cs +src/Immutable.Api/Model/FulfillmentData200ResponseResult.cs +src/Immutable.Api/Model/FulfillmentDataRequest.cs +src/Immutable.Api/Model/GetActivityResult.cs +src/Immutable.Api/Model/GetCollectionResult.cs +src/Immutable.Api/Model/GetLinkedAddressesRes.cs +src/Immutable.Api/Model/GetMetadataResult.cs +src/Immutable.Api/Model/GetMintRequestResult.cs +src/Immutable.Api/Model/GetNFTResult.cs +src/Immutable.Api/Model/GetTokenResult.cs +src/Immutable.Api/Model/InactiveOrderStatus.cs +src/Immutable.Api/Model/Item.cs +src/Immutable.Api/Model/LastTrade.cs +src/Immutable.Api/Model/LinkWalletV2Request.cs +src/Immutable.Api/Model/ListActivitiesResult.cs +src/Immutable.Api/Model/ListBidsResult.cs +src/Immutable.Api/Model/ListChainsResult.cs +src/Immutable.Api/Model/ListCollectionBidsResult.cs +src/Immutable.Api/Model/ListCollectionOwnersResult.cs +src/Immutable.Api/Model/ListCollectionsResult.cs +src/Immutable.Api/Model/ListListingsResult.cs +src/Immutable.Api/Model/ListMetadataResult.cs +src/Immutable.Api/Model/ListMintRequestsResult.cs +src/Immutable.Api/Model/ListNFTOwnersResult.cs +src/Immutable.Api/Model/ListNFTsByOwnerResult.cs +src/Immutable.Api/Model/ListNFTsResult.cs +src/Immutable.Api/Model/ListTokensResult.cs +src/Immutable.Api/Model/ListTradeResult.cs +src/Immutable.Api/Model/Listing.cs +src/Immutable.Api/Model/ListingResult.cs +src/Immutable.Api/Model/Market.cs +src/Immutable.Api/Model/MarketNft.cs +src/Immutable.Api/Model/MarketPriceDetails.cs +src/Immutable.Api/Model/MarketPriceDetailsToken.cs +src/Immutable.Api/Model/MarketPriceERC20Token.cs +src/Immutable.Api/Model/MarketPriceFees.cs +src/Immutable.Api/Model/MarketPriceNativeToken.cs +src/Immutable.Api/Model/Metadata.cs +src/Immutable.Api/Model/MetadataRefreshRateLimitResult.cs +src/Immutable.Api/Model/Mint.cs +src/Immutable.Api/Model/MintAsset.cs +src/Immutable.Api/Model/MintRequestErrorMessage.cs +src/Immutable.Api/Model/MintRequestStatus.cs +src/Immutable.Api/Model/NFT.cs +src/Immutable.Api/Model/NFTBundle.cs +src/Immutable.Api/Model/NFTContractType.cs +src/Immutable.Api/Model/NFTMetadataAttribute.cs +src/Immutable.Api/Model/NFTMetadataAttributeValue.cs +src/Immutable.Api/Model/NFTMetadataRequest.cs +src/Immutable.Api/Model/NFTOwner.cs +src/Immutable.Api/Model/NFTQuoteResult.cs +src/Immutable.Api/Model/NFTSale.cs +src/Immutable.Api/Model/NFTWithBalance.cs +src/Immutable.Api/Model/NFTWithOwner.cs +src/Immutable.Api/Model/NFTWithStack.cs +src/Immutable.Api/Model/NativeItem.cs +src/Immutable.Api/Model/OperatorAllowlistContractStatus.cs +src/Immutable.Api/Model/OperatorAllowlistContractStatusInternal.cs +src/Immutable.Api/Model/OperatorAllowlistStatus.cs +src/Immutable.Api/Model/OperatorAllowlistStatusDetails.cs +src/Immutable.Api/Model/OperatorAllowlistStatusRequested.cs +src/Immutable.Api/Model/OperatorAllowlistStatusUpdated.cs +src/Immutable.Api/Model/Order.cs +src/Immutable.Api/Model/OrderStatus.cs +src/Immutable.Api/Model/OrderStatusName.cs +src/Immutable.Api/Model/OrganisationTier.cs +src/Immutable.Api/Model/Page.cs +src/Immutable.Api/Model/PaymentAmount.cs +src/Immutable.Api/Model/PendingOrderStatus.cs +src/Immutable.Api/Model/ProtocolData.cs +src/Immutable.Api/Model/QuotesForNFTsResult.cs +src/Immutable.Api/Model/QuotesForStacksResult.cs +src/Immutable.Api/Model/RefreshCollectionMetadataRequest.cs +src/Immutable.Api/Model/RefreshCollectionMetadataResult.cs +src/Immutable.Api/Model/RefreshMetadataByID.cs +src/Immutable.Api/Model/RefreshMetadataByIDRequest.cs +src/Immutable.Api/Model/RefreshMetadataByTokenID.cs +src/Immutable.Api/Model/RefreshNFTMetadataByTokenIDRequest.cs +src/Immutable.Api/Model/RefreshableNFTAttributes.cs +src/Immutable.Api/Model/SaleFee.cs +src/Immutable.Api/Model/SalePayment.cs +src/Immutable.Api/Model/SalePaymentToken.cs +src/Immutable.Api/Model/SearchNFTsResult.cs +src/Immutable.Api/Model/SearchStacksResult.cs +src/Immutable.Api/Model/SignCraftingRequest.cs +src/Immutable.Api/Model/SignCraftingRequestMultiCaller.cs +src/Immutable.Api/Model/SignCraftingResult.cs +src/Immutable.Api/Model/Stack.cs +src/Immutable.Api/Model/StackBundle.cs +src/Immutable.Api/Model/StackQuoteResult.cs +src/Immutable.Api/Model/Token.cs +src/Immutable.Api/Model/TokenContractType.cs +src/Immutable.Api/Model/Trade.cs +src/Immutable.Api/Model/TradeBlockchainMetadata.cs +src/Immutable.Api/Model/TradeResult.cs +src/Immutable.Api/Model/Transfer.cs +src/Immutable.Api/Model/UnfulfillableOrder.cs +src/Immutable.Api/Model/UserInfo.cs +src/Immutable.Api/Model/VerificationRequest.cs +src/Immutable.Api/Model/VerificationRequestContractType.cs +src/Immutable.Api/Model/VerificationRequestInternal.cs +src/Immutable.Api/Model/VerificationRequestStatus.cs +src/Immutable.Api/Model/Wallet.cs +src/Immutable.Api/Model/Withdrawal.cs diff --git a/Assets/Shared/Scripts/Data/API/Search/.openapi-generator/VERSION b/Assets/Shared/Scripts/Data/API/ImmutableApi/.openapi-generator/VERSION similarity index 100% rename from Assets/Shared/Scripts/Data/API/Search/.openapi-generator/VERSION rename to Assets/Shared/Scripts/Data/API/ImmutableApi/.openapi-generator/VERSION diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/README.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/README.md new file mode 100644 index 00000000..b63bca26 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/README.md @@ -0,0 +1,318 @@ +# Immutable.Api - the C# library for the Immutable zkEVM API + +Immutable Multi Rollup API + +This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: 1.0.0 +- SDK version: 1.0.0 +- Generator version: 7.8.0 +- Build package: org.openapitools.codegen.languages.CSharpClientCodegen + For more information, please visit [https://support.immutable.com](https://support.immutable.com) + + +## Version support +This generator should support all current LTS versions of Unity +- Unity 2020.3 (LTS) and up +- .NET Standard 2.1 / .NET Framework + + +## Dependencies + +- [Newtonsoft.Json](https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@3.0/manual/index.html) - 3.0.2 or later +- [Unity Test Framework](https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/index.html) - 1.1.33 or later + + +## Installation +Add the dependencies to `Packages/manifest.json` +``` +{ + "dependencies": { + ... + "com.unity.nuget.newtonsoft-json": "3.0.2", + "com.unity.test-framework": "1.1.33", + } +} +``` + +Then use the namespaces: +```csharp +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; +``` + + +## Getting Started + +```csharp +using System; +using System.Collections.Generic; +using UnityEngine; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.ApiExample +{ + + public class GetActivityExample : MonoBehaviour + { + async void Start() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ActivitiesApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var activityId = "activityId_example"; // Guid | The id of activity + + try + { + // Get a single activity by ID + GetActivityResult result = await apiInstance.GetActivityAsync(chainName, activityId); + Debug.Log(result); + Debug.Log("Done!"); + } + catch (ApiException e) + { + Debug.LogError("Exception when calling ActivitiesApi.GetActivity: " + e.Message ); + Debug.LogError("Status Code: "+ e.ErrorCode); + Debug.LogError(e.StackTrace); + } + + } + } +} +``` + + +## Documentation for API Endpoints + +All URIs are relative to *https://api.sandbox.immutable.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ActivitiesApi* | [**GetActivity**](ActivitiesApi.md#getactivity) | **GET** /v1/chains/{chain_name}/activities/{activity_id} | Get a single activity by ID +*ActivitiesApi* | [**ListActivities**](ActivitiesApi.md#listactivities) | **GET** /v1/chains/{chain_name}/activities | List all activities +*ActivitiesApi* | [**ListActivityHistory**](ActivitiesApi.md#listactivityhistory) | **GET** /v1/chains/{chain_name}/activity-history | List history of activities +*ChainsApi* | [**ListChains**](ChainsApi.md#listchains) | **GET** /v1/chains | List supported chains +*CollectionsApi* | [**GetCollection**](CollectionsApi.md#getcollection) | **GET** /v1/chains/{chain_name}/collections/{contract_address} | Get collection by contract address +*CollectionsApi* | [**ListCollections**](CollectionsApi.md#listcollections) | **GET** /v1/chains/{chain_name}/collections | List all collections +*CollectionsApi* | [**ListCollectionsByNFTOwner**](CollectionsApi.md#listcollectionsbynftowner) | **GET** /v1/chains/{chain_name}/accounts/{account_address}/collections | List collections by NFT owner +*CollectionsApi* | [**RefreshCollectionMetadata**](CollectionsApi.md#refreshcollectionmetadata) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata | Refresh collection metadata +*CraftingApi* | [**SignCraftingPayload**](CraftingApi.md#signcraftingpayload) | **POST** /v1/chains/{chain_name}/crafting/sign | Sign a crafting payload +*MetadataApi* | [**GetMetadata**](MetadataApi.md#getmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id} | Get metadata by ID +*MetadataApi* | [**ListMetadata**](MetadataApi.md#listmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata | Get a list of metadata from the given contract +*MetadataApi* | [**ListMetadataForChain**](MetadataApi.md#listmetadataforchain) | **GET** /v1/chains/{chain_name}/metadata | Get a list of metadata from the given chain +*MetadataApi* | [**RefreshMetadataByID**](MetadataApi.md#refreshmetadatabyid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata | Refresh stacked metadata +*MetadataApi* | [**RefreshNFTMetadataByTokenID**](MetadataApi.md#refreshnftmetadatabytokenid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata | Refresh NFT metadata +*NftOwnersApi* | [**ListAllNFTOwners**](NftOwnersApi.md#listallnftowners) | **GET** /v1/chains/{chain_name}/nft-owners | List all NFT owners +*NftOwnersApi* | [**ListNFTOwners**](NftOwnersApi.md#listnftowners) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners | List NFT owners by token ID +*NftOwnersApi* | [**ListOwnersByContractAddress**](NftOwnersApi.md#listownersbycontractaddress) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/owners | List owners by contract address +*NftsApi* | [**CreateMintRequest**](NftsApi.md#createmintrequest) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests | Mint NFTs +*NftsApi* | [**GetMintRequest**](NftsApi.md#getmintrequest) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id} | Get mint request by reference ID +*NftsApi* | [**GetNFT**](NftsApi.md#getnft) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id} | Get NFT by token ID +*NftsApi* | [**ListAllNFTs**](NftsApi.md#listallnfts) | **GET** /v1/chains/{chain_name}/nfts | List all NFTs +*NftsApi* | [**ListMintRequests**](NftsApi.md#listmintrequests) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests | List mint requests +*NftsApi* | [**ListNFTs**](NftsApi.md#listnfts) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts | List NFTs by contract address +*NftsApi* | [**ListNFTsByAccountAddress**](NftsApi.md#listnftsbyaccountaddress) | **GET** /v1/chains/{chain_name}/accounts/{account_address}/nfts | List NFTs by account address +*OrdersApi* | [**CancelOrders**](OrdersApi.md#cancelorders) | **POST** /v1/chains/{chain_name}/orders/cancel | Cancel one or more orders +*OrdersApi* | [**CreateBid**](OrdersApi.md#createbid) | **POST** /v1/chains/{chain_name}/orders/bids | Create a bid +*OrdersApi* | [**CreateCollectionBid**](OrdersApi.md#createcollectionbid) | **POST** /v1/chains/{chain_name}/orders/collection-bids | Create a collection bid +*OrdersApi* | [**CreateListing**](OrdersApi.md#createlisting) | **POST** /v1/chains/{chain_name}/orders/listings | Create a listing +*OrdersApi* | [**FulfillmentData**](OrdersApi.md#fulfillmentdata) | **POST** /v1/chains/{chain_name}/orders/fulfillment-data | Retrieve fulfillment data for orders +*OrdersApi* | [**GetBid**](OrdersApi.md#getbid) | **GET** /v1/chains/{chain_name}/orders/bids/{bid_id} | Get a single bid by ID +*OrdersApi* | [**GetCollectionBid**](OrdersApi.md#getcollectionbid) | **GET** /v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id} | Get a single collection bid by ID +*OrdersApi* | [**GetListing**](OrdersApi.md#getlisting) | **GET** /v1/chains/{chain_name}/orders/listings/{listing_id} | Get a single listing by ID +*OrdersApi* | [**GetTrade**](OrdersApi.md#gettrade) | **GET** /v1/chains/{chain_name}/trades/{trade_id} | Get a single trade by ID +*OrdersApi* | [**ListBids**](OrdersApi.md#listbids) | **GET** /v1/chains/{chain_name}/orders/bids | List all bids +*OrdersApi* | [**ListCollectionBids**](OrdersApi.md#listcollectionbids) | **GET** /v1/chains/{chain_name}/orders/collection-bids | List all collection bids +*OrdersApi* | [**ListListings**](OrdersApi.md#listlistings) | **GET** /v1/chains/{chain_name}/orders/listings | List all listings +*OrdersApi* | [**ListTrades**](OrdersApi.md#listtrades) | **GET** /v1/chains/{chain_name}/trades | List all trades +*PassportApi* | [**GetLinkedAddresses**](PassportApi.md#getlinkedaddresses) | **GET** /v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses | Get Ethereum linked addresses for a user +*PassportProfileApi* | [**GetUserInfo**](PassportProfileApi.md#getuserinfo) | **GET** /passport-profile/v1/user/info | Get all info for a Passport user +*PassportProfileApi* | [**LinkWalletV2**](PassportProfileApi.md#linkwalletv2) | **POST** /passport-profile/v2/linked-wallets | Link wallet v2 +*PricingApi* | [**QuotesForNFTs**](PricingApi.md#quotesfornfts) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/nfts | Experimental: Get pricing data for a list of token ids +*PricingApi* | [**QuotesForStacks**](PricingApi.md#quotesforstacks) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/stacks | Experimental: Get pricing data for a list of stack ids +*StacksApi* | [**SearchNFTs**](StacksApi.md#searchnfts) | **GET** /experimental/chains/{chain_name}/search/nfts | Experimental: Search NFTs +*StacksApi* | [**SearchStacks**](StacksApi.md#searchstacks) | **GET** /experimental/chains/{chain_name}/search/stacks | Experimental: Search NFT stacks +*TokensApi* | [**GetERC20Token**](TokensApi.md#geterc20token) | **GET** /v1/chains/{chain_name}/tokens/{contract_address} | Get single ERC20 token +*TokensApi* | [**ListERC20Tokens**](TokensApi.md#listerc20tokens) | **GET** /v1/chains/{chain_name}/tokens | List ERC20 tokens + + + +## Documentation for Models + + - [Model.APIError400](APIError400.md) + - [Model.APIError401](APIError401.md) + - [Model.APIError403](APIError403.md) + - [Model.APIError404](APIError404.md) + - [Model.APIError409](APIError409.md) + - [Model.APIError429](APIError429.md) + - [Model.APIError500](APIError500.md) + - [Model.APIError501](APIError501.md) + - [Model.ActiveOrderStatus](ActiveOrderStatus.md) + - [Model.Activity](Activity.md) + - [Model.ActivityAsset](ActivityAsset.md) + - [Model.ActivityDetails](ActivityDetails.md) + - [Model.ActivityNFT](ActivityNFT.md) + - [Model.ActivityNativeToken](ActivityNativeToken.md) + - [Model.ActivityToken](ActivityToken.md) + - [Model.ActivityType](ActivityType.md) + - [Model.AssetCollectionItem](AssetCollectionItem.md) + - [Model.AssetVerificationStatus](AssetVerificationStatus.md) + - [Model.BasicAPIError](BasicAPIError.md) + - [Model.BidResult](BidResult.md) + - [Model.BlockchainMetadata](BlockchainMetadata.md) + - [Model.Burn](Burn.md) + - [Model.Call](Call.md) + - [Model.CancelOrdersRequestBody](CancelOrdersRequestBody.md) + - [Model.CancelOrdersResult](CancelOrdersResult.md) + - [Model.CancelOrdersResultData](CancelOrdersResultData.md) + - [Model.CancelledOrderStatus](CancelledOrderStatus.md) + - [Model.Chain](Chain.md) + - [Model.ChainWithDetails](ChainWithDetails.md) + - [Model.Collection](Collection.md) + - [Model.CollectionBidResult](CollectionBidResult.md) + - [Model.CollectionContractType](CollectionContractType.md) + - [Model.CollectionMetadata](CollectionMetadata.md) + - [Model.CreateBidRequestBody](CreateBidRequestBody.md) + - [Model.CreateCollectionBidRequestBody](CreateCollectionBidRequestBody.md) + - [Model.CreateListingRequestBody](CreateListingRequestBody.md) + - [Model.CreateMintRequestRequest](CreateMintRequestRequest.md) + - [Model.CreateMintRequestResult](CreateMintRequestResult.md) + - [Model.Deposit](Deposit.md) + - [Model.ERC1155CollectionItem](ERC1155CollectionItem.md) + - [Model.ERC1155Item](ERC1155Item.md) + - [Model.ERC20Item](ERC20Item.md) + - [Model.ERC721CollectionItem](ERC721CollectionItem.md) + - [Model.ERC721Item](ERC721Item.md) + - [Model.ExpiredOrderStatus](ExpiredOrderStatus.md) + - [Model.FailedOrderCancellation](FailedOrderCancellation.md) + - [Model.Fee](Fee.md) + - [Model.FillStatus](FillStatus.md) + - [Model.FilledOrderStatus](FilledOrderStatus.md) + - [Model.FulfillableOrder](FulfillableOrder.md) + - [Model.FulfillmentData200Response](FulfillmentData200Response.md) + - [Model.FulfillmentData200ResponseResult](FulfillmentData200ResponseResult.md) + - [Model.FulfillmentDataRequest](FulfillmentDataRequest.md) + - [Model.GetActivityResult](GetActivityResult.md) + - [Model.GetCollectionResult](GetCollectionResult.md) + - [Model.GetLinkedAddressesRes](GetLinkedAddressesRes.md) + - [Model.GetMetadataResult](GetMetadataResult.md) + - [Model.GetMintRequestResult](GetMintRequestResult.md) + - [Model.GetNFTResult](GetNFTResult.md) + - [Model.GetTokenResult](GetTokenResult.md) + - [Model.InactiveOrderStatus](InactiveOrderStatus.md) + - [Model.Item](Item.md) + - [Model.LastTrade](LastTrade.md) + - [Model.LinkWalletV2Request](LinkWalletV2Request.md) + - [Model.ListActivitiesResult](ListActivitiesResult.md) + - [Model.ListBidsResult](ListBidsResult.md) + - [Model.ListChainsResult](ListChainsResult.md) + - [Model.ListCollectionBidsResult](ListCollectionBidsResult.md) + - [Model.ListCollectionOwnersResult](ListCollectionOwnersResult.md) + - [Model.ListCollectionsResult](ListCollectionsResult.md) + - [Model.ListListingsResult](ListListingsResult.md) + - [Model.ListMetadataResult](ListMetadataResult.md) + - [Model.ListMintRequestsResult](ListMintRequestsResult.md) + - [Model.ListNFTOwnersResult](ListNFTOwnersResult.md) + - [Model.ListNFTsByOwnerResult](ListNFTsByOwnerResult.md) + - [Model.ListNFTsResult](ListNFTsResult.md) + - [Model.ListTokensResult](ListTokensResult.md) + - [Model.ListTradeResult](ListTradeResult.md) + - [Model.Listing](Listing.md) + - [Model.ListingResult](ListingResult.md) + - [Model.Market](Market.md) + - [Model.MarketNft](MarketNft.md) + - [Model.MarketPriceDetails](MarketPriceDetails.md) + - [Model.MarketPriceDetailsToken](MarketPriceDetailsToken.md) + - [Model.MarketPriceERC20Token](MarketPriceERC20Token.md) + - [Model.MarketPriceFees](MarketPriceFees.md) + - [Model.MarketPriceNativeToken](MarketPriceNativeToken.md) + - [Model.Metadata](Metadata.md) + - [Model.MetadataRefreshRateLimitResult](MetadataRefreshRateLimitResult.md) + - [Model.Mint](Mint.md) + - [Model.MintAsset](MintAsset.md) + - [Model.MintRequestErrorMessage](MintRequestErrorMessage.md) + - [Model.MintRequestStatus](MintRequestStatus.md) + - [Model.NFT](NFT.md) + - [Model.NFTBundle](NFTBundle.md) + - [Model.NFTContractType](NFTContractType.md) + - [Model.NFTMetadataAttribute](NFTMetadataAttribute.md) + - [Model.NFTMetadataAttributeValue](NFTMetadataAttributeValue.md) + - [Model.NFTMetadataRequest](NFTMetadataRequest.md) + - [Model.NFTOwner](NFTOwner.md) + - [Model.NFTQuoteResult](NFTQuoteResult.md) + - [Model.NFTSale](NFTSale.md) + - [Model.NFTWithBalance](NFTWithBalance.md) + - [Model.NFTWithOwner](NFTWithOwner.md) + - [Model.NFTWithStack](NFTWithStack.md) + - [Model.NativeItem](NativeItem.md) + - [Model.OperatorAllowlistContractStatus](OperatorAllowlistContractStatus.md) + - [Model.OperatorAllowlistContractStatusInternal](OperatorAllowlistContractStatusInternal.md) + - [Model.OperatorAllowlistStatus](OperatorAllowlistStatus.md) + - [Model.OperatorAllowlistStatusDetails](OperatorAllowlistStatusDetails.md) + - [Model.OperatorAllowlistStatusRequested](OperatorAllowlistStatusRequested.md) + - [Model.OperatorAllowlistStatusUpdated](OperatorAllowlistStatusUpdated.md) + - [Model.Order](Order.md) + - [Model.OrderStatus](OrderStatus.md) + - [Model.OrderStatusName](OrderStatusName.md) + - [Model.OrganisationTier](OrganisationTier.md) + - [Model.Page](Page.md) + - [Model.PaymentAmount](PaymentAmount.md) + - [Model.PendingOrderStatus](PendingOrderStatus.md) + - [Model.ProtocolData](ProtocolData.md) + - [Model.QuotesForNFTsResult](QuotesForNFTsResult.md) + - [Model.QuotesForStacksResult](QuotesForStacksResult.md) + - [Model.RefreshCollectionMetadataRequest](RefreshCollectionMetadataRequest.md) + - [Model.RefreshCollectionMetadataResult](RefreshCollectionMetadataResult.md) + - [Model.RefreshMetadataByID](RefreshMetadataByID.md) + - [Model.RefreshMetadataByIDRequest](RefreshMetadataByIDRequest.md) + - [Model.RefreshMetadataByTokenID](RefreshMetadataByTokenID.md) + - [Model.RefreshNFTMetadataByTokenIDRequest](RefreshNFTMetadataByTokenIDRequest.md) + - [Model.RefreshableNFTAttributes](RefreshableNFTAttributes.md) + - [Model.SaleFee](SaleFee.md) + - [Model.SalePayment](SalePayment.md) + - [Model.SalePaymentToken](SalePaymentToken.md) + - [Model.SearchNFTsResult](SearchNFTsResult.md) + - [Model.SearchStacksResult](SearchStacksResult.md) + - [Model.SignCraftingRequest](SignCraftingRequest.md) + - [Model.SignCraftingRequestMultiCaller](SignCraftingRequestMultiCaller.md) + - [Model.SignCraftingResult](SignCraftingResult.md) + - [Model.Stack](Stack.md) + - [Model.StackBundle](StackBundle.md) + - [Model.StackQuoteResult](StackQuoteResult.md) + - [Model.Token](Token.md) + - [Model.TokenContractType](TokenContractType.md) + - [Model.Trade](Trade.md) + - [Model.TradeBlockchainMetadata](TradeBlockchainMetadata.md) + - [Model.TradeResult](TradeResult.md) + - [Model.Transfer](Transfer.md) + - [Model.UnfulfillableOrder](UnfulfillableOrder.md) + - [Model.UserInfo](UserInfo.md) + - [Model.VerificationRequest](VerificationRequest.md) + - [Model.VerificationRequestContractType](VerificationRequestContractType.md) + - [Model.VerificationRequestInternal](VerificationRequestInternal.md) + - [Model.VerificationRequestStatus](VerificationRequestStatus.md) + - [Model.Wallet](Wallet.md) + - [Model.Withdrawal](Withdrawal.md) + + + +## Documentation for Authorization + + +Authentication schemes defined for the API: + +### BearerAuth + +- **Type**: Bearer Authentication + + +### ImmutableApiKey + +- **Type**: API key +- **API key parameter name**: x-immutable-api-key +- **Location**: HTTP header + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/api/openapi.yaml b/Assets/Shared/Scripts/Data/API/ImmutableApi/api/openapi.yaml new file mode 100644 index 00000000..c81522cd --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/api/openapi.yaml @@ -0,0 +1,10864 @@ +openapi: 3.0.3 +info: + contact: + email: support@immutable.com + name: Immutable API Support + url: https://support.immutable.com + description: Immutable Multi Rollup API + title: Immutable zkEVM API + version: 1.0.0 +servers: +- url: https://api.sandbox.immutable.com +tags: +- description: Activities Endpoints + name: activities + x-displayName: activities +- description: Chains Endpoints + name: chains + x-displayName: chains +- description: Collections Endpoints + name: collections + x-displayName: collections +- description: NFTs Endpoints + name: nfts + x-displayName: nfts +- description: NFT Owner Endpoints + name: nft owners + x-displayName: nft owners +- description: NFT Metadata Endpoints + name: metadata + x-displayName: metadata +- description: ERC20 Token Endpoints + name: tokens + x-displayName: tokens +- description: Temporary HTML endpoint for demo purposes + name: demopage + x-displayName: demopage +- name: verification + x-displayName: verification +- name: operatorallowlist + x-displayName: operatorallowlist +- name: crafting + x-displayName: crafting +- description: Listings Endpoints + name: listings + x-displayName: listings +- name: orders + x-displayName: orders +- description: Passport operations + name: passport + x-displayName: passport +- description: Passport Profile endpoints + name: passport profile + x-displayName: passport profile +- description: Guardian endpoints + name: guardian + x-displayName: guardian +- description: Pricing Endpoints + name: pricing + x-displayName: pricing +- description: Stacks Endpoints + name: stacks + x-displayName: stacks +paths: + /v1/chains/{chain_name}/activity-history: + get: + description: "List activities sorted by updated_at timestamp ascending, useful\ + \ for time based data replication" + operationId: ListActivityHistory + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: From indexed at including given date + explode: true + in: query + name: from_updated_at + required: true + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: To indexed at including given date + explode: true + in: query + name: to_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: The contract address of the collection + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: true + in: query + name: contract_address + required: false + schema: + type: string + style: form + - description: The activity type + example: burn + explode: true + in: query + name: activity_type + required: false + schema: + $ref: '#/components/schemas/ActivityType' + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListActivitiesResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List history of activities + tags: + - activities + /v1/chains/{chain_name}/activities: + get: + description: List all activities + operationId: ListActivities + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The contract address of NFT or ERC20 Token + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: true + in: query + name: contract_address + required: false + schema: + type: string + style: form + - description: An `uint256` token id as string + example: "1" + explode: true + in: query + name: token_id + required: false + schema: + type: string + style: form + - description: The account address activity contains + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: true + in: query + name: account_address + required: false + schema: + type: string + style: form + - description: The activity type + example: burn + explode: true + in: query + name: activity_type + required: false + schema: + $ref: '#/components/schemas/ActivityType' + style: form + - description: The transaction hash of activity + example: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + explode: true + in: query + name: transaction_hash + required: false + schema: + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListActivitiesResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all activities + tags: + - activities + /v1/chains/{chain_name}/activities/{activity_id}: + get: + description: Get a single activity by ID + operationId: GetActivity + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The id of activity + explode: false + in: path + name: activity_id + required: true + schema: + $ref: '#/components/schemas/ActivityID' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetActivityResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single activity by ID + tags: + - activities + /v1/chains/{chain_name}/collections: + get: + description: List all collections + operationId: ListCollections + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of contract addresses to filter by + explode: true + in: query + name: contract_address + required: false + schema: + items: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + type: array + style: form + - description: List of verification status to filter by + explode: true + in: query + name: verification_status + required: false + schema: + items: + $ref: '#/components/schemas/AssetVerificationStatus' + type: array + style: form + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListCollectionsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all collections + tags: + - collections + /v1/chains/{chain_name}/collections/{contract_address}: + get: + description: Get collection by contract address + operationId: GetCollection + parameters: + - description: The address contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetCollectionResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get collection by contract address + tags: + - collections + /v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata: + post: + description: Refresh collection metadata + operationId: RefreshCollectionMetadata + parameters: + - description: The address contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RefreshCollectionMetadataRequest' + description: The request body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RefreshCollectionMetadataResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - refresh:metadata + - BearerAuth: + - refresh:metadata + summary: Refresh collection metadata + tags: + - collections + /v1/chains/{chain_name}/accounts/{account_address}/collections: + get: + description: List collections by NFT owner account address + operationId: ListCollectionsByNFTOwner + parameters: + - description: Account address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: account_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListCollectionsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List collections by NFT owner + tags: + - collections + /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}: + get: + description: Get NFT by token ID + operationId: GetNFT + parameters: + - description: The address of NFT contract + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: An `uint256` token id as string + example: "1" + explode: false + in: path + name: token_id + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetNFTResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get NFT by token ID + tags: + - nfts + /v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}: + get: + description: Get metadata by ID + operationId: GetMetadata + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The address of metadata contract + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The id of the metadata + explode: false + in: path + name: metadata_id + required: true + schema: + $ref: '#/components/schemas/MetadataID' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetMetadataResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get metadata by ID + tags: + - metadata + /v1/chains/{chain_name}/collections/{contract_address}/metadata: + get: + description: Get a list of metadata from the given contract + operationId: ListMetadata + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The address of metadata contract + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListMetadataResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a list of metadata from the given contract + tags: + - metadata + /v1/chains/{chain_name}/metadata: + get: + description: Get a list of metadata from the given chain + operationId: ListMetadataForChain + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListMetadataResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a list of metadata from the given chain + tags: + - metadata + /v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata: + post: + description: Refresh stacked metadata + operationId: RefreshMetadataByID + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Contract address + explode: false + in: path + name: contract_address + required: true + schema: + $ref: '#/components/schemas/Address' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RefreshMetadataByIDRequest' + description: NFT Metadata Refresh Request + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataRefreshRateLimitResult' + description: Accepted + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + retry-after: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Metadata refreshes (429) + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + Retry-After: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - refresh:metadata + summary: Refresh stacked metadata + tags: + - metadata + x-go-name: RefreshMetadataByID + /v1/chains/{chain_name}/collections/{contract_address}/nfts: + get: + description: List NFTs by contract address + operationId: ListNFTs + parameters: + - description: Contract address + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of token IDs to filter by + explode: true + in: query + name: token_id + required: false + schema: + items: + example: "1" + type: string + maxItems: 30 + type: array + style: form + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List NFTs by contract address + tags: + - nfts + /v1/chains/{chain_name}/accounts/{account_address}/nfts: + get: + description: List NFTs by account address + operationId: ListNFTsByAccountAddress + parameters: + - description: Account address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: account_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: true + in: query + name: contract_address + required: false + schema: + type: string + style: form + - description: List of token IDs to filter by + explode: true + in: query + name: token_id + required: false + schema: + items: + example: "1" + type: string + maxItems: 30 + type: array + style: form + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTsByOwnerResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List NFTs by account address + tags: + - nfts + /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners: + get: + description: List NFT owners by token ID + operationId: ListNFTOwners + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: An `uint256` token id as string + example: "1" + explode: false + in: path + name: token_id + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTOwnersResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List NFT owners by token ID + tags: + - nft owners + /v1/chains/{chain_name}/nfts: + get: + description: List all NFTs on a chain + operationId: ListAllNFTs + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all NFTs + tags: + - nfts + /v1/chains/{chain_name}/nft-owners: + get: + description: List all NFT owners on a chain + operationId: ListAllNFTOwners + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTOwnersResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all NFT owners + tags: + - nft owners + /v1/chains/{chain_name}/collections/{contract_address}/owners: + get: + description: List owners by contract address + operationId: ListOwnersByContractAddress + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of account addresses to filter by + explode: true + in: query + name: account_address + required: false + schema: + items: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + maxItems: 30 + type: array + style: form + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListCollectionOwnersResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List owners by contract address + tags: + - nft owners + /v1/chains/{chain_name}/tokens: + get: + description: List ERC20 tokens + operationId: ListERC20Tokens + parameters: + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: List of verification status to filter by + explode: true + in: query + name: verification_status + required: false + schema: + items: + $ref: '#/components/schemas/AssetVerificationStatus' + type: array + style: form + - description: "[Experimental - Canonical token data may be updated] Filter\ + \ by canonical or non-canonical tokens." + explode: true + in: query + name: is_canonical + required: false + schema: + type: boolean + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListTokensResult' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List ERC20 tokens + tags: + - tokens + /v1/chains/{chain_name}/tokens/{contract_address}: + get: + description: Get single ERC20 token + operationId: GetERC20Token + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetTokenResult' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get single ERC20 token + tags: + - tokens + /v1/chains: + get: + description: List supported chains + operationId: ListChains + parameters: + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListChainsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List supported chains + tags: + - chains + /v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata: + post: + description: Refresh NFT metadata + operationId: RefreshNFTMetadataByTokenID + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RefreshNFTMetadataByTokenIDRequest' + description: the request body + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataRefreshRateLimitResult' + description: Accepted + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + retry-after: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Metadata refreshes (429) + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + Retry-After: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - refresh:metadata + summary: Refresh NFT metadata + tags: + - metadata + /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests: + get: + description: Retrieve the status of all mints for a given contract address + operationId: ListMintRequests + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: The status of the mint request + explode: true + in: query + name: status + required: false + schema: + $ref: '#/components/schemas/MintRequestStatus' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListMintRequestsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - write:mint-request + summary: List mint requests + tags: + - nfts + post: + description: Create a mint request to mint a set of NFTs for a given collection + operationId: CreateMintRequest + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateMintRequestRequest' + description: Create Mint Request Body + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/CreateMintRequestResult' + description: Accepted + headers: + imx-mint-requests-limit: + $ref: '#/components/headers/MintRequestsLimit' + imx-mint-requests-limit-reset: + $ref: '#/components/headers/MintRequestsLimitReset' + imx-remaining-mint-requests: + $ref: '#/components/headers/MintRequestsLimitRemaining' + imx-mint-requests-retry-after: + $ref: '#/components/headers/MintRequestsRetryAfter' + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError409' + description: Conflict (409) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many mint requests (429) + headers: + imx-mint-requests-limit: + $ref: '#/components/headers/MintRequestsLimit' + imx-mint-requests-limit-reset: + $ref: '#/components/headers/MintRequestsLimitReset' + imx-remaining-mint-requests: + $ref: '#/components/headers/MintRequestsLimitRemaining' + imx-mint-requests-retry-after: + $ref: '#/components/headers/MintRequestsRetryAfter' + Retry-After: + $ref: '#/components/headers/MintRequestsRetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - write:mint-request + summary: Mint NFTs + tags: + - nfts + /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}: + get: + description: Retrieve the status of a mint request identified by its reference_id + operationId: GetMintRequest + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The id of the mint request + example: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + explode: false + in: path + name: reference_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListMintRequestsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - write:mint-request + summary: Get mint request by reference ID + tags: + - nfts + /v1/chains/{chain_name}/crafting/sign: + post: + description: Sign a crafting payload + operationId: SignCraftingPayload + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SignCraftingRequest' + description: The request body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SignCraftingResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - create:collections + summary: Sign a crafting payload + tags: + - crafting + /v1/chains/{chain_name}/orders/cancel: + post: + description: Cancel one or more orders + operationId: CancelOrders + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CancelOrdersRequestBody' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CancelOrdersResult' + description: Orders cancellation response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError501' + description: Not Implemented Error (501) + summary: Cancel one or more orders + tags: + - orders + /v1/chains/{chain_name}/orders/listings: + get: + description: List all listings + operationId: ListListings + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Order status to filter by + explode: true + in: query + name: status + required: false + schema: + $ref: '#/components/schemas/OrderStatusName' + style: form + - description: Sell item contract address to filter by + explode: true + in: query + name: sell_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Buy item type to filter by + explode: true + in: query + name: buy_item_type + required: false + schema: + enum: + - NATIVE + - ERC20 + example: NATIVE + type: string + style: form + - description: Buy item contract address to filter by + explode: true + in: query + name: buy_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The account address of the user who created the listing + explode: true + in: query + name: account_address + required: false + schema: + example: 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The metadata_id of the sell item + explode: true + in: query + name: sell_item_metadata_id + required: false + schema: + example: 020792c9-4ad7-8ec4-4038-9e05c598535b + format: uuid + type: string + style: form + - description: Sell item token identifier to filter by + explode: true + in: query + name: sell_item_token_id + required: false + schema: + example: "1" + pattern: \d+ + type: string + style: form + - description: From updated at including given date + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + style: form + - description: Maximum number of orders to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: "Order field to sort by. `buy_item_amount` sorts by per token\ + \ price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as\ + \ 2eth for `buy_item_amount`." + example: created_at + explode: true + in: query + name: sort_by + required: false + schema: + description: Order field to sort by + enum: + - created_at + - updated_at + - buy_item_amount + example: created_at + type: string + style: form + - description: Ascending or descending direction for sort + example: asc + explode: true + in: query + name: sort_direction + required: false + schema: + description: Ascending or descending direction for sort + enum: + - asc + - desc + example: asc + type: string + style: form + - description: Page cursor to retrieve previous or next page. Use the value + returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListListingsResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all listings + tags: + - orders + post: + description: Create a listing + operationId: CreateListing + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateListingRequestBody' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ListingResult' + description: Created response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Create a listing + tags: + - orders + /v1/chains/{chain_name}/orders/bids: + get: + description: List all bids + operationId: ListBids + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Order status to filter by + explode: true + in: query + name: status + required: false + schema: + $ref: '#/components/schemas/OrderStatusName' + style: form + - description: Buy item contract address to filter by + explode: true + in: query + name: buy_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Sell item contract address to filter by + explode: true + in: query + name: sell_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The account address of the user who created the bid + explode: true + in: query + name: account_address + required: false + schema: + example: 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The metadata_id of the buy item + explode: true + in: query + name: buy_item_metadata_id + required: false + schema: + example: 020792c9-4ad7-8ec4-4038-9e05c598535b + format: uuid + type: string + style: form + - description: buy item token identifier to filter by + explode: true + in: query + name: buy_item_token_id + required: false + schema: + example: "1" + pattern: \d+ + type: string + style: form + - description: From updated at including given date + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + style: form + - description: Maximum number of orders to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: "Order field to sort by. `sell_item_amount` sorts by per token\ + \ price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted\ + \ as 2eth for `sell_item_amount`." + example: created_at + explode: true + in: query + name: sort_by + required: false + schema: + description: Order field to sort by + enum: + - created_at + - updated_at + - sell_item_amount + example: created_at + type: string + style: form + - description: Ascending or descending direction for sort + example: asc + explode: true + in: query + name: sort_direction + required: false + schema: + description: Ascending or descending direction for sort + enum: + - asc + - desc + example: asc + type: string + style: form + - description: Page cursor to retrieve previous or next page. Use the value + returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListBidsResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all bids + tags: + - orders + post: + description: Create a bid + operationId: CreateBid + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateBidRequestBody' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/BidResult' + description: Created response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError501' + description: Not Implemented Error (501) + summary: Create a bid + tags: + - orders + /v1/chains/{chain_name}/orders/collection-bids: + get: + description: List all collection bids + operationId: ListCollectionBids + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Order status to filter by + explode: true + in: query + name: status + required: false + schema: + $ref: '#/components/schemas/OrderStatusName' + style: form + - description: Buy item contract address to filter by + explode: true + in: query + name: buy_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Sell item contract address to filter by + explode: true + in: query + name: sell_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The account address of the user who created the bid + explode: true + in: query + name: account_address + required: false + schema: + example: 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: From updated at including given date + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + style: form + - description: Maximum number of orders to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: "Order field to sort by. `sell_item_amount` sorts by per token\ + \ price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted\ + \ as 2eth for `sell_item_amount`." + example: created_at + explode: true + in: query + name: sort_by + required: false + schema: + description: Order field to sort by + enum: + - created_at + - updated_at + - sell_item_amount + example: created_at + type: string + style: form + - description: Ascending or descending direction for sort + example: asc + explode: true + in: query + name: sort_direction + required: false + schema: + description: Ascending or descending direction for sort + enum: + - asc + - desc + example: asc + type: string + style: form + - description: Page cursor to retrieve previous or next page. Use the value + returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListCollectionBidsResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all collection bids + tags: + - orders + post: + description: Create a collection bid + operationId: CreateCollectionBid + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCollectionBidRequestBody' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionBidResult' + description: Created response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError501' + description: Not Implemented Error (501) + summary: Create a collection bid + tags: + - orders + /v1/chains/{chain_name}/orders/listings/{listing_id}: + get: + description: Get a single listing by ID + operationId: GetListing + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Global Order identifier + explode: false + in: path + name: listing_id + required: true + schema: + description: Global Order identifier + example: 018792c9-4ad7-8ec4-4038-9e05c598534a + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListingResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single listing by ID + tags: + - orders + /v1/chains/{chain_name}/orders/bids/{bid_id}: + get: + description: Get a single bid by ID + operationId: GetBid + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Global Bid identifier + explode: false + in: path + name: bid_id + required: true + schema: + description: Global Bid identifier + example: 018792c9-4ad7-8ec4-4038-9e05c598534a + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/BidResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single bid by ID + tags: + - orders + /v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}: + get: + description: Get a single collection bid by ID + operationId: GetCollectionBid + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Global Collection Bid identifier + explode: false + in: path + name: collection_bid_id + required: true + schema: + description: Global Collection Bid identifier + example: 018792c9-4ad7-8ec4-4038-9e05c598534a + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionBidResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single collection bid by ID + tags: + - orders + /v1/chains/{chain_name}/orders/fulfillment-data: + post: + description: Retrieve signed fulfillment data based on the list of order IDs + and corresponding fees. + operationId: fulfillment_data + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/FulfillmentDataRequest' + type: array + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/fulfillment_data_200_response' + description: Successful response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Retrieve fulfillment data for orders + tags: + - orders + /v1/chains/{chain_name}/trades: + get: + description: List all trades + operationId: ListTrades + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - explode: true + in: query + name: account_address + required: false + schema: + description: Account address to filter trades by (includes buy and sell + wallet address) + example: 0x784578949A4A50DeA641Fb15dd2B11C72E76919a + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - explode: true + in: query + name: sell_item_contract_address + required: false + schema: + description: Sell item contract address to filter by + example: 0x784578949A4A50DeA641Fb15dd2B11C72E76919a + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: From indexed at including given date + explode: true + in: query + name: from_indexed_at + required: false + schema: + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + style: form + - description: Maximum number of trades to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: Trade field to sort by + example: indexed_at + explode: true + in: query + name: sort_by + required: false + schema: + description: Trade field to sort by + enum: + - indexed_at + example: indexed_at + type: string + style: form + - description: Ascending or descending direction for sort + example: asc + explode: true + in: query + name: sort_direction + required: false + schema: + description: Ascending or descending direction for sort + enum: + - asc + - desc + example: asc + type: string + style: form + - description: Page cursor to retrieve previous or next page. Use the value + returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListTradeResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all trades + tags: + - orders + /v1/chains/{chain_name}/trades/{trade_id}: + get: + description: Get a single trade by ID + operationId: GetTrade + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Global Trade identifier + explode: false + in: path + name: trade_id + required: true + schema: + description: Global Trade identifier + example: 018792c9-4ad7-8ec4-4038-9e05c598534a + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TradeResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single trade by ID + tags: + - orders + /v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses: + get: + deprecated: true + description: "This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo\ + \ instead to get a list of linked addresses." + operationId: getLinkedAddresses + parameters: + - description: The user's userId + explode: false + in: path + name: user_id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetLinkedAddressesRes' + description: User's list of linked addresses response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: BadRequestError + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: UnauthorizedError + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: ForbiddenError + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: TooManyRequestsError + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: InternalServerError + default: + content: + application/json: + schema: + $ref: '#/components/schemas/BasicAPIError' + description: unexpected error + security: + - BearerAuth: + - openid + summary: Get Ethereum linked addresses for a user + tags: + - passport + /passport-profile/v2/linked-wallets: + post: + description: Link an external EOA wallet to an Immutable Passport account by + providing an EIP-712 signature. + operationId: link-wallet-v2 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LinkWalletV2Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Wallet' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: BadRequestError + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: UnauthorizedError + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: ForbiddenError + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: InternalServerError + security: + - BearerAuth: + - openid + summary: Link wallet v2 + tags: + - passport profile + /passport-profile/v1/user/info: + get: + description: Get all the info for an authenticated Passport user + operationId: getUserInfo + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UserInfo' + description: Passport user's info + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: UnauthorizedError + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: InternalServerError + default: + content: + application/json: + schema: + $ref: '#/components/schemas/BasicAPIError' + description: unexpected error + security: + - BearerAuth: + - openid + summary: Get all info for a Passport user + tags: + - passport profile + /experimental/chains/{chain_name}/search/nfts: + get: + description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ + \ Search NFTs" + operationId: SearchNFTs + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of contract addresses to filter by + explode: true + in: query + name: contract_address + required: true + schema: + items: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Account address to filter by + explode: true + in: query + name: account_address + required: false + schema: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Filters NFTs that belong to any of these stacks + explode: true + in: query + name: stack_id + required: false + schema: + items: + example: 7053e765-c119-4efb-b5cf-405ccccaf6c4 + format: uuid + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Whether the listings should include only the owner created listings + explode: true + in: query + name: only_include_owner_listings + required: false + schema: + example: true + type: boolean + style: form + - description: Number of results to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SearchNFTsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: "Experimental: Search NFTs" + tags: + - stacks + x-hide-from-sdk: true + /experimental/chains/{chain_name}/search/stacks: + get: + description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ + \ Search NFT stacks" + operationId: SearchStacks + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of contract addresses to filter by + explode: true + in: query + name: contract_address + required: true + schema: + items: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Account address to filter by + explode: true + in: query + name: account_address + required: false + schema: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Whether to the listings should include only the owner created + listings + explode: true + in: query + name: only_include_owner_listings + required: false + schema: + example: true + type: boolean + style: form + - description: Filters results to include only stacks that have a current active + listing. False and 'null' return all unfiltered stacks. + explode: true + in: query + name: only_if_has_active_listings + required: false + schema: + example: true + type: boolean + style: form + - description: "JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"\ + rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}}))" + explode: true + in: query + name: trait + required: false + schema: + type: string + style: form + - description: Keyword to search NFT name and description. Alphanumeric characters + only. + explode: true + in: query + name: keyword + required: false + schema: + example: sword + type: string + style: form + - description: Sort results in a specific order + explode: true + in: query + name: sort_by + required: false + schema: + enum: + - cheapest_first + nullable: false + type: string + style: form + - description: Number of results to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SearchStacksResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: "Experimental: Search NFT stacks" + tags: + - stacks + x-hide-from-sdk: true + /experimental/chains/{chain_name}/quotes/{contract_address}/stacks: + get: + description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ + \ Get pricing data for a list of stack ids" + operationId: QuotesForStacks + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Contract address for collection that these stacks are on + explode: false + in: path + name: contract_address + required: true + schema: + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: simple + - description: List of stack ids to get pricing data for + explode: true + in: query + name: stack_id + required: true + schema: + items: + example: 7053e765-c119-4efb-b5cf-405ccccaf6c4 + format: uuid + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QuotesForStacksResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: "Experimental: Get pricing data for a list of stack ids" + tags: + - pricing + x-hide-from-sdk: true + /experimental/chains/{chain_name}/quotes/{contract_address}/nfts: + get: + description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ + \ Get pricing data for a list of token ids" + operationId: QuotesForNFTs + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Contract address for collection that these token ids are on + explode: false + in: path + name: contract_address + required: true + schema: + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: simple + - description: List of token ids to get pricing data for + explode: true + in: query + name: token_id + required: true + schema: + items: + example: "1337" + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QuotesForNFTsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: "Experimental: Get pricing data for a list of token ids" + tags: + - pricing + x-hide-from-sdk: true +components: + headers: + MetadataRefreshLimit: + description: The refresh request limit available to the project for each one-hour + window. + explode: false + schema: + type: string + style: simple + MetadataRefreshLimitReset: + description: The expiry date of the current one-hour window. + explode: false + schema: + type: string + style: simple + MetadataRefreshLimitRemaining: + description: The number of refresh requests remaining in the current window. + explode: false + schema: + type: string + style: simple + MetadataRefreshRetryAfter: + description: The number of seconds until the next refresh request can be made. + explode: false + schema: + type: string + style: simple + RetryAfter: + description: The number of seconds until the next request can be made. + explode: false + schema: + type: string + style: simple + MintRequestsLimit: + description: The mint requests limit available to the project for each time + window. + explode: false + schema: + type: string + style: simple + MintRequestsLimitReset: + description: The expiry date of the current time window. + explode: false + schema: + type: string + style: simple + MintRequestsLimitRemaining: + description: The number of mint requests remaining in the current window. + explode: false + schema: + type: string + style: simple + MintRequestsRetryAfter: + description: The number of seconds until the next refresh request can be made. + explode: false + schema: + type: string + style: simple + parameters: + ChainName: + description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + ContractAddress: + description: Contract address + explode: false + in: path + name: contract_address + required: true + schema: + $ref: '#/components/schemas/Address' + style: simple + responses: + NotFound: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + BadRequest: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + UnauthorisedRequest: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + ForbiddenRequest: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + Conflict: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError409' + description: Conflict (409) + TooManyRequests: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + TooManyMetadataRefreshes: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Metadata refreshes (429) + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + Retry-After: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + TooManyMintRequests: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many mint requests (429) + headers: + imx-mint-requests-limit: + $ref: '#/components/headers/MintRequestsLimit' + imx-mint-requests-limit-reset: + $ref: '#/components/headers/MintRequestsLimitReset' + imx-remaining-mint-requests: + $ref: '#/components/headers/MintRequestsLimitRemaining' + imx-mint-requests-retry-after: + $ref: '#/components/headers/MintRequestsRetryAfter' + Retry-After: + $ref: '#/components/headers/MintRequestsRetryAfter' + InternalServerError: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + NotImplementedError: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError501' + description: Not Implemented Error (501) + schemas: + PageSize: + default: 100 + description: Maximum number of items to return + example: 10 + format: int32 + maximum: 200 + minimum: 1 + type: integer + PageCursor: + description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + example: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + type: string + Page: + description: Pagination properties + example: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + previous_cursor: + description: First item as an encoded string + example: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + nullable: true + type: string + next_cursor: + description: Last item as an encoded string + example: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + nullable: true + type: string + required: + - next_cursor + - previous_cursor + type: object + ActivityType: + description: The activity type + enum: + - mint + - burn + - transfer + - sale + - deposit + - withdrawal + example: mint + type: string + ActivityNFT: + example: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + properties: + contract_type: + $ref: '#/components/schemas/NFTContractType' + contract_address: + description: The token contract address + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + token_id: + description: An `uint256` token id as string + example: "1" + type: string + amount: + deprecated: true + description: "(deprecated - will never be filled, use amount on Activity\ + \ instead) The amount of tokens exchanged" + example: "1" + type: string + required: + - amount + - contract_address + - contract_type + - token_id + type: object + ActivityToken: + properties: + contract_type: + $ref: '#/components/schemas/TokenContractType' + contract_address: + description: The contract address + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + required: + - contract_address + - contract_type + type: object + ActivityAsset: + description: The contract and asset details for this activity + discriminator: + propertyName: contract_type + oneOf: + - $ref: '#/components/schemas/ActivityNFT' + - $ref: '#/components/schemas/ActivityToken' + Address: + description: An Ethereum address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + x-go-type: common.Address + x-go-type-import: + path: github.com/ethereum/go-ethereum/common + name: common + Mint: + description: The mint activity details + example: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + properties: + to: + description: The account address the asset was minted to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The minted amount + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - amount + - asset + - to + type: object + Deposit: + description: The deposit activity details + properties: + to: + description: The account address the asset was deposited to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The deposited amount + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - amount + - asset + - to + type: object + Burn: + description: The burn activity details + properties: + from: + description: The account address the asset was transferred from + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The amount of assets burnt + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - amount + - asset + - from + type: object + Withdrawal: + description: The withdrawal activity details + properties: + from: + description: The account address the asset was withdrawn from + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The amount of assets withdrawn + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - amount + - asset + - from + type: object + Transfer: + description: The transfer activity details + properties: + from: + description: The account address the asset was transferred from + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + to: + description: The account address the asset was transferred to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The amount of assets transferred + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - activity_type + - amount + - asset + - from + - to + type: object + ActivityNativeToken: + properties: + symbol: + description: The token symbol + example: ETH + type: string + required: + - symbol + type: object + SalePayment: + properties: + token: + $ref: '#/components/schemas/SalePayment_token' + price_excluding_fees: + description: The base price of the sale not including any fees + example: "180" + type: string + price_including_fees: + description: The total price of the sale. Includes the sum of all fees + example: "200" + type: string + fees: + description: The fees associated with this sale + example: + - address: 0xB0F3749458169B7Ad51B5503CC3649DE55c2D0D2 + amount: "20" + type: ROYALTY + items: + $ref: '#/components/schemas/SaleFee' + minItems: 0 + type: array + required: + - fees + - price_excluding_fees + - price_including_fees + - token + type: object + SaleFee: + properties: + amount: + description: Fee payable to recipient upon settlement + example: "200" + type: string + type: + description: Fee type + enum: + - ROYALTY + example: ROYALTY + type: string + recipient: + description: Wallet address of fee recipient + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + type: string + type: object + NFTSale: + description: The NFT Sale activity details + properties: + order_id: + description: The id of order + example: ARZ3NDEKTSV4RRFFQ69G5FAV + type: string + to: + description: The account address of buyer + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + from: + description: The account address of seller + example: 0xbD6cFcf93474De653d7B42b346c7c25d1F9c559C + type: string + asset: + items: + $ref: '#/components/schemas/ActivityNFT' + type: array + payment: + $ref: '#/components/schemas/SalePayment' + required: + - asset + - from + - order_id + - payment + - to + type: object + ActivityDetails: + description: The activity details + oneOf: + - $ref: '#/components/schemas/Mint' + - $ref: '#/components/schemas/Burn' + - $ref: '#/components/schemas/Transfer' + - $ref: '#/components/schemas/NFTSale' + - $ref: '#/components/schemas/Deposit' + - $ref: '#/components/schemas/Withdrawal' + BlockchainMetadata: + description: The metadata related to blockchain transaction + example: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + nullable: true + properties: + transaction_hash: + description: The transaction hash of the activity + example: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + type: string + block_number: + description: EVM block number (uint64 as string) + example: "1" + type: string + transaction_index: + description: Transaction index in a block (uint32 as string) + example: "1" + type: string + log_index: + description: The log index of activity in a block (uint32 as string) + example: "1" + nullable: true + type: string + required: + - block_number + - log_index + - transaction_hash + - transaction_index + type: object + Activity: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + blockchain_metadata: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + updated_at: 2022-08-16T17:43:26.991388Z + indexed_at: 2022-08-16T17:43:26.991388Z + details: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + type: mint + properties: + id: + description: Activity id in UUIDv4 format + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + type: + $ref: '#/components/schemas/ActivityType' + details: + $ref: '#/components/schemas/ActivityDetails' + updated_at: + description: The time activity was updated at + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + indexed_at: + description: The time activity was indexed + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + blockchain_metadata: + $ref: '#/components/schemas/BlockchainMetadata' + required: + - blockchain_metadata + - chain + - details + - id + - indexed_at + - type + - updated_at + type: object + ListActivitiesResult: + description: List activities response + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + blockchain_metadata: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + updated_at: 2022-08-16T17:43:26.991388Z + indexed_at: 2022-08-16T17:43:26.991388Z + details: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + type: mint + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + blockchain_metadata: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + updated_at: 2022-08-16T17:43:26.991388Z + indexed_at: 2022-08-16T17:43:26.991388Z + details: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + type: mint + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of activities + items: + $ref: '#/components/schemas/Activity' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + GetActivityResult: + description: Single activity + example: + result: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + blockchain_metadata: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + updated_at: 2022-08-16T17:43:26.991388Z + indexed_at: 2022-08-16T17:43:26.991388Z + details: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + type: mint + properties: + result: + $ref: '#/components/schemas/Activity' + required: + - result + type: object + Collection: + example: + symbol: BASP + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + description: Some description + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + verification_status: verified + external_link: https://some-url + contract_uri: https://some-url + contract_type: ERC721 + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + base_uri: https://some-url + name: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + chain: + $ref: '#/components/schemas/Chain' + name: + description: The name of the collection + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + nullable: true + type: string + symbol: + description: The symbol of contract + example: BASP + nullable: true + type: string + contract_type: + $ref: '#/components/schemas/CollectionContractType' + contract_address: + description: The address of the contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + description: + description: The description of collection + example: Some description + nullable: true + type: string + image: + description: The url of the collection image + example: https://some-url + nullable: true + type: string + external_link: + description: The url of external link + example: https://some-url + nullable: true + type: string + contract_uri: + description: The uri for the metadata of the collection + example: https://some-url + nullable: true + type: string + base_uri: + description: The metadata uri for nft + example: https://some-url + nullable: true + type: string + verification_status: + $ref: '#/components/schemas/AssetVerificationStatus' + indexed_at: + description: When the collection was first indexed + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the collection was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + metadata_synced_at: + description: When the collection metadata was last synced + example: 2022-08-16T17:43:26.991388Z + format: date-time + nullable: true + type: string + required: + - base_uri + - chain + - contract_address + - contract_type + - description + - external_link + - image + - indexed_at + - metadata_synced_at + - metadata_uri + - name + - symbol + - updated_at + - verification_status + type: object + ListCollectionsResult: + example: + result: + - symbol: BASP + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + description: Some description + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + verification_status: verified + external_link: https://some-url + contract_uri: https://some-url + contract_type: ERC721 + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + base_uri: https://some-url + name: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + metadata_synced_at: 2022-08-16T17:43:26.991388Z + - symbol: BASP + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + description: Some description + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + verification_status: verified + external_link: https://some-url + contract_uri: https://some-url + contract_type: ERC721 + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + base_uri: https://some-url + name: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + metadata_synced_at: 2022-08-16T17:43:26.991388Z + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of collections + items: + $ref: '#/components/schemas/Collection' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + GetCollectionResult: + description: Single Collection + example: + result: + symbol: BASP + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + description: Some description + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + verification_status: verified + external_link: https://some-url + contract_uri: https://some-url + contract_type: ERC721 + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + base_uri: https://some-url + name: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + result: + $ref: '#/components/schemas/Collection' + required: + - result + type: object + GetMetadataResult: + description: Single metadata + example: + result: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + external_url: https://some-url + animation_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + name: Sword + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + youtube_url: https://some-url + properties: + result: + $ref: '#/components/schemas/Metadata' + required: + - result + type: object + ListMetadataResult: + example: + result: + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + external_url: https://some-url + animation_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + name: Sword + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + youtube_url: https://some-url + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + external_url: https://some-url + animation_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + name: Sword + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + youtube_url: https://some-url + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of metadata + items: + $ref: '#/components/schemas/Metadata' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + Metadata: + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + external_url: https://some-url + animation_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + name: Sword + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + youtube_url: https://some-url + properties: + id: + description: Metadata id in UUIDv4 format + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The contract address of the metadata + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + created_at: + description: When the metadata was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the metadata was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + nullable: true + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: true + type: array + required: + - animation_url + - attributes + - chain + - contract_address + - created_at + - description + - external_link + - id + - image + - name + - updated_at + - youtube_url + type: object + RefreshMetadataByIDRequest: + description: Request body for refreshing metadata by id. Total size of this + list should not exceed 228 KiB + example: + metadata: + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + metadata: + items: + $ref: '#/components/schemas/RefreshMetadataByID' + maxItems: 10 + minItems: 1 + type: array + required: + - metadata + type: object + NFT: + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + total_supply: "100" + description: 2022-08-16T17:43:26.991388Z + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + external_url: https://some-url + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + chain: + $ref: '#/components/schemas/Chain' + token_id: + description: An `uint256` token id as string + example: "1" + type: string + contract_address: + description: The contract address of the NFT + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + contract_type: + $ref: '#/components/schemas/NFTContractType' + indexed_at: + description: When the NFT was first indexed + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the NFT owner was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + metadata_synced_at: + description: When NFT metadata was last synced + example: 2022-08-16T17:43:26.991388Z + format: date-time + nullable: true + type: string + metadata_id: + description: The id of the metadata of this NFT + example: ae83bc80-4dd5-11ee-be56-0242ac120002 + format: uuid + nullable: true + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_link: + deprecated: true + description: (deprecated - use external_url instead) The external website + link of NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of NFT Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + type: array + total_supply: + description: The total supply of NFT + example: "100" + nullable: true + type: string + required: + - animation_url + - attributes + - chain + - contract_address + - contract_type + - description + - external_link + - external_url + - image + - indexed_at + - metadata_synced_at + - name + - token_id + - updated_at + - youtube_url + type: object + NFTWithBalance: + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + description: This is a super awesome sword + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + balance: "11" + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + chain: + $ref: '#/components/schemas/Chain' + token_id: + description: An `uint256` token id as string + example: "1" + type: string + contract_address: + description: The contract address of the NFT + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + contract_type: + $ref: '#/components/schemas/NFTContractType' + indexed_at: + description: When the NFT was first indexed + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the NFT owner was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + metadata_synced_at: + description: When NFT metadata was last synced + example: 2022-08-16T17:43:26.991388Z + format: date-time + nullable: true + type: string + metadata_id: + description: The id of the metadata of this NFT + example: ae83bc80-4dd5-11ee-be56-0242ac120002 + format: uuid + nullable: true + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: This is a super awesome sword + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_link: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: false + type: array + balance: + description: The amount of this NFT this account owns + example: "11" + nullable: false + type: string + required: + - animation_url + - attributes + - balance + - chain + - contract_address + - contract_type + - description + - external_link + - image + - indexed_at + - metadata_synced_at + - name + - token_id + - updated_at + - youtube_url + type: object + NFTMetadataAttribute: + example: + display_type: number + value: Happy + trait_type: Aqua Power + properties: + display_type: + description: Display type for this attribute + enum: + - number + - boost_percentage + - boost_number + - date + example: number + nullable: true + type: string + trait_type: + description: The metadata trait type + example: Aqua Power + type: string + value: + $ref: '#/components/schemas/NFTMetadataAttribute_value' + required: + - trait_type + - value + type: object + ChainName: + description: The name of chain + example: imtbl-zkevm-testnet + type: string + ActivityID: + description: Activity id in UUIDv4 format + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + MetadataID: + description: Metadata id in UUIDv4 format + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + CollectionContractType: + description: The collection contract type + enum: + - ERC721 + - ERC1155 + type: string + NFTContractType: + description: The contract type for an NFT + enum: + - ERC721 + - ERC1155 + type: string + TokenContractType: + description: The contract type for a token + enum: + - ERC20 + type: string + AssetVerificationStatus: + description: The verification status for a given contract + enum: + - verified + - unverified + - spam + - inactive + type: string + VerificationRequestStatus: + description: The status of the verification request + enum: + - completed + - pending + type: string + GetNFTResult: + description: Single NFT + example: + result: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + total_supply: "100" + description: 2022-08-16T17:43:26.991388Z + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + external_url: https://some-url + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + result: + $ref: '#/components/schemas/NFT' + required: + - result + type: object + ListNFTsResult: + example: + result: + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + total_supply: "100" + description: 2022-08-16T17:43:26.991388Z + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + external_url: https://some-url + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + total_supply: "100" + description: 2022-08-16T17:43:26.991388Z + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + external_url: https://some-url + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of NFTs + items: + $ref: '#/components/schemas/NFT' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + ListNFTsByOwnerResult: + example: + result: + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + description: This is a super awesome sword + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + balance: "11" + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + description: This is a super awesome sword + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + balance: "11" + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of NFTs by owner + items: + $ref: '#/components/schemas/NFTWithBalance' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + NFTOwner: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + properties: + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The address of NFT contract + example: 0x5a019874f4fae314b0eaa4606be746366e661306 + type: string + token_id: + description: An `uint256` token id as string + example: "1" + type: string + account_address: + description: The account address of the owner of the NFT + example: 0x5a019874f4fae314b0eaa4606be746366e661306 + type: string + balance: + description: The amount of owned tokens (uint256 as string) + example: "1" + type: string + updated_at: + description: When the NFT owner was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + required: + - account_address + - balance + - chain + - contract_address + - token_id + type: object + NFTWithOwner: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + properties: + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The address of NFT contract + example: 0x5a019874f4fae314b0eaa4606be746366e661306 + type: string + token_id: + description: An `uint256` token id as string + example: "1" + type: string + account_address: + description: The account address of the owner of the NFT + example: 0x5a019874f4fae314b0eaa4606be746366e661306 + type: string + balance: + description: The amount of owned tokens (uint256 as string) + example: "1" + type: string + updated_at: + description: When the owner last changed for the given NFT + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + required: + - account_address + - balance + - chain + - contract_address + - token_id + - updated_at + type: object + GetTokenResult: + description: Single Token + example: + result: + symbol: AAA + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + updated_at: 2022-08-16T17:43:26.991388Z + root_chain_id: eip155:1 + image_url: https://some-url + is_canonical: true + bridge_used: axelar + decimals: 18 + name: Token A + contract_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + root_contract_address: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + verification_status: verified + properties: + result: + $ref: '#/components/schemas/Token' + required: + - result + type: object + ListNFTOwnersResult: + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of nft owners + items: + $ref: '#/components/schemas/NFTOwner' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + ListCollectionOwnersResult: + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of NFT owners + items: + $ref: '#/components/schemas/NFTWithOwner' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + ChainWithDetails: + allOf: + - $ref: '#/components/schemas/Chain' + - properties: + rpc_url: + description: URL for RPC node + nullable: true + type: string + required: + - rpc_url + type: object + example: + rpc_url: rpc_url + name: imtbl-zkevm-testnet + id: eip155:13372 + Chain: + description: The chain details + example: + name: imtbl-zkevm-testnet + id: eip155:13372 + properties: + id: + description: The id of chain + example: eip155:13372 + type: string + name: + description: The name of chain + example: imtbl-zkevm-testnet + type: string + required: + - id + - name + type: object + ListChainsResult: + example: + result: + - rpc_url: rpc_url + name: imtbl-zkevm-testnet + id: eip155:13372 + - rpc_url: rpc_url + name: imtbl-zkevm-testnet + id: eip155:13372 + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of chains + items: + $ref: '#/components/schemas/ChainWithDetails' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + ListTokensResult: + example: + result: + - symbol: AAA + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + updated_at: 2022-08-16T17:43:26.991388Z + root_chain_id: eip155:1 + image_url: https://some-url + is_canonical: true + bridge_used: axelar + decimals: 18 + name: Token A + contract_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + root_contract_address: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + verification_status: verified + - symbol: AAA + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + updated_at: 2022-08-16T17:43:26.991388Z + root_chain_id: eip155:1 + image_url: https://some-url + is_canonical: true + bridge_used: axelar + decimals: 18 + name: Token A + contract_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + root_contract_address: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + verification_status: verified + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of tokens + items: + $ref: '#/components/schemas/Token' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + RefreshMetadataByID: + allOf: + - $ref: '#/components/schemas/RefreshableNFTAttributes' + - properties: + metadata_id: + $ref: '#/components/schemas/MetadataID' + required: + - metadata_id + type: object + example: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + RefreshMetadataByTokenID: + allOf: + - $ref: '#/components/schemas/RefreshableNFTAttributes' + - properties: + token_id: + description: An `uint256` token id as string + example: "1" + type: string + required: + - token_id + type: object + example: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + RefreshableNFTAttributes: + allOf: + - $ref: '#/components/schemas/NFTMetadataRequest' + required: + - animation_url + - attributes + - description + - external_url + - image + - name + - youtube_url + NFTMetadataRequest: + description: The NFT metadata. Total size of this object should not exceed 16 + KiB + example: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external link of the NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube link of the NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: true + type: array + type: object + RefreshNFTMetadataByTokenIDRequest: + example: + nft_metadata: + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + nft_metadata: + description: List of nft metadata to be refreshed. Total size of the list + should not exceed 228 KiB + items: + $ref: '#/components/schemas/RefreshMetadataByTokenID' + maxItems: 250 + minItems: 1 + type: array + required: + - nft_metadata + type: object + Token: + example: + symbol: AAA + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + updated_at: 2022-08-16T17:43:26.991388Z + root_chain_id: eip155:1 + image_url: https://some-url + is_canonical: true + bridge_used: axelar + decimals: 18 + name: Token A + contract_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + root_contract_address: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + verification_status: verified + properties: + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The address of token contract + example: 0xc344c05eef8876e517072f879dae8905aa2b956b + type: string + root_contract_address: + description: The address of root token contract + example: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + nullable: true + type: string + root_chain_id: + description: The id of the root chain for a bridged token + example: eip155:1 + nullable: true + type: string + bridge_used: + description: "The name of the bridge, for bridged tokens only" + example: axelar + nullable: true + type: string + symbol: + description: The symbol of token + example: AAA + nullable: true + type: string + decimals: + description: The decimals of token + example: 18 + nullable: true + type: integer + image_url: + description: The image url of token + example: https://some-url + nullable: true + type: string + name: + description: The name of token + example: Token A + nullable: true + type: string + verification_status: + $ref: '#/components/schemas/AssetVerificationStatus' + updated_at: + description: When the collection was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + is_canonical: + description: Indicates whether the token is canonical or not + example: true + type: boolean + required: + - chain + - contract_address + - decimals + - image_url + - is_canonical + - name + - root_contract_address + - symbol + - updated_at + - verification_status + type: object + CollectionMetadata: + example: + contract_uri: https://some-url + symbol: GLZ + image: https://some-url + base_uri: https://some-url + name: Gigantic Lizards + description: This is the Gigantic Lizards collection + external_link: https://some-url + properties: + name: + description: The name of the collection + example: Gigantic Lizards + nullable: true + type: string + symbol: + description: The symbol of contract + example: GLZ + nullable: true + type: string + description: + description: The description of collection + example: This is the Gigantic Lizards collection + nullable: true + type: string + image: + description: The url of the collection image + example: https://some-url + nullable: true + type: string + external_link: + description: The url of external link + example: https://some-url + nullable: true + type: string + contract_uri: + description: The uri for the metadata of the collection + example: https://some-url + nullable: true + type: string + base_uri: + description: The metadata uri for nft + example: https://some-url + nullable: true + type: string + required: + - base_uri + - contract_uri + - description + - external_link + - image + - name + - symbol + type: object + RefreshCollectionMetadataRequest: + example: + collection_metadata: + contract_uri: https://some-url + symbol: GLZ + image: https://some-url + base_uri: https://some-url + name: Gigantic Lizards + description: This is the Gigantic Lizards collection + external_link: https://some-url + properties: + collection_metadata: + $ref: '#/components/schemas/CollectionMetadata' + required: + - collection_metadata + type: object + RefreshCollectionMetadataResult: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + collection_metadata: + contract_uri: https://some-url + symbol: GLZ + image: https://some-url + base_uri: https://some-url + name: Gigantic Lizards + description: This is the Gigantic Lizards collection + external_link: https://some-url + contract_address: contract_address + properties: + contract_address: + type: string + chain: + $ref: '#/components/schemas/Chain' + collection_metadata: + $ref: '#/components/schemas/CollectionMetadata' + required: + - chain + - collection_metadata + - contract_address + type: object + MetadataRefreshRateLimitResult: + example: + imx_refreshes_limit: imx_refreshes_limit + imx_remaining_refreshes: imx_remaining_refreshes + retry_after: retry_after + imx_refresh_limit_reset: imx_refresh_limit_reset + properties: + imx_refreshes_limit: + type: string + imx_refresh_limit_reset: + type: string + imx_remaining_refreshes: + type: string + retry_after: + type: string + required: + - imx_refresh_limit_reset + - imx_refreshes_limit + - imx_remaining_refreshes + - retry_after + type: object + CreateMintRequestRequest: + example: + assets: + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + properties: + assets: + description: List of nft to be minted + items: + $ref: '#/components/schemas/MintAsset' + maxItems: 100 + minItems: 1 + type: array + required: + - assets + type: object + VerificationRequestInternal: + allOf: + - $ref: '#/components/schemas/VerificationRequest' + - properties: + org_tier: + $ref: '#/components/schemas/OrganisationTier' + required: + - org_tier + type: object + description: The verification request (internal) + VerificationRequest: + description: The verification request + properties: + id: + description: The id of the verification request + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The contract address + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + org_name: + description: The name of the organisation associated with this contract + example: Immutable + nullable: true + type: string + name: + description: The name of the collection + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + nullable: true + type: string + symbol: + description: The symbol of contract + example: BASP + nullable: true + type: string + description: + description: The description of collection + example: Some description + nullable: true + type: string + org_id: + description: The id of the organisation associated with this contract + example: 753da67a-5d3b-42c7-b87a-eba3d17a6362 + nullable: true + type: string + requester_email: + description: The email address of the user who requested the contract to + be verified + example: user@immutable.com + nullable: true + type: string + contract_type: + $ref: '#/components/schemas/VerificationRequestContractType' + verification_request_status: + $ref: '#/components/schemas/VerificationRequestStatus' + required: + - chain + - contract_address + - contract_type + - description + - id + - name + - org_id + - org_name + - requester_email + - symbol + - verification_request_status + type: object + VerificationRequestContractType: + description: The contract type associated with the given request + enum: + - ERC20 + - ERC721 + - ERC1155 + type: string + OrganisationTier: + description: The tier of the organisation + enum: + - common + - uncommon + - rare + - epic + - legendary + nullable: true + type: string + MintAsset: + example: + amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + properties: + reference_id: + description: The id of this asset in the system that originates the mint + request + example: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + type: string + owner_address: + description: The address of the receiver + example: 0xc344c05eef8876e517072f879dae8905aa2b956b + type: string + token_id: + description: An optional `uint256` token id as string. Required for ERC1155 + collections. + example: "1" + nullable: true + type: string + amount: + description: Optional mount of tokens to mint. Required for ERC1155 collections. + ERC712 collections can omit this field or set it to 1 + example: "1" + minLength: 1 + nullable: true + type: string + metadata: + $ref: '#/components/schemas/NFTMetadataRequest' + required: + - owner_address + - reference_id + type: object + CreateMintRequestResult: + example: + imx_mint_requests_retry_after: imx_mint_requests_retry_after + imx_mint_requests_limit: imx_mint_requests_limit + imx_mint_requests_limit_reset: imx_mint_requests_limit_reset + imx_remaining_mint_requests: imx_remaining_mint_requests + properties: + imx_mint_requests_limit: + type: string + imx_mint_requests_limit_reset: + type: string + imx_remaining_mint_requests: + type: string + imx_mint_requests_retry_after: + type: string + required: + - imx_mint_requests_limit + - imx_mint_requests_limit_reset + - imx_mint_requests_retry_after + - imx_remaining_mint_requests + type: object + ListMintRequestsResult: + description: List mint requests + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + amount: "1" + reference_id: reference_id + token_id: "1" + updated_at: 2022-08-16T17:43:26.991388Z + collection_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + activity_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + created_at: 2022-08-16T17:43:26.991388Z + owner_address: owner_address + error: + message: message + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + status: pending + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + amount: "1" + reference_id: reference_id + token_id: "1" + updated_at: 2022-08-16T17:43:26.991388Z + collection_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + activity_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + created_at: 2022-08-16T17:43:26.991388Z + owner_address: owner_address + error: + message: message + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + status: pending + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of mint requests + items: + $ref: '#/components/schemas/GetMintRequestResult' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + GetMintRequestResult: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + amount: "1" + reference_id: reference_id + token_id: "1" + updated_at: 2022-08-16T17:43:26.991388Z + collection_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + activity_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + created_at: 2022-08-16T17:43:26.991388Z + owner_address: owner_address + error: + message: message + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + status: pending + properties: + chain: + $ref: '#/components/schemas/Chain' + collection_address: + description: The address of the contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + reference_id: + description: The reference id of this mint request + type: string + owner_address: + description: The address of the owner of the NFT + type: string + token_id: + description: An `uint256` token id as string. Only available when the mint + request succeeds + example: "1" + nullable: true + type: string + amount: + description: An `uint256` amount as string. Only relevant for mint requests + on ERC1155 contracts + example: "1" + nullable: true + type: string + activity_id: + description: The id of the mint activity associated with this mint request + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + nullable: true + type: string + transaction_hash: + description: The transaction hash of the activity + example: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + nullable: true + type: string + created_at: + description: When the mint request was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the mint request was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + error: + $ref: '#/components/schemas/MintRequestErrorMessage' + status: + $ref: '#/components/schemas/MintRequestStatus' + required: + - chain + - collection_address + - created_at + - error + - owner_address + - reference_id + - status + - token_id + - transaction_hash + - updated_at + type: object + MintRequestErrorMessage: + description: The error details in case the mint request fails + example: + message: message + nullable: true + properties: + message: + description: An error message in case the mint request fails + type: string + type: object + MintRequestStatus: + description: The status of the mint request + enum: + - pending + - succeeded + - failed + example: pending + type: string + OperatorAllowlistStatus: + description: The status of a contract on the operator allowlist + enum: + - requested + - approved + - rejected + - removed + - added + example: requested + type: string + OperatorAllowlistStatusDetails: + description: The operator allowlist status details + oneOf: + - $ref: '#/components/schemas/OperatorAllowlistStatusRequested' + - $ref: '#/components/schemas/OperatorAllowlistStatusUpdated' + OperatorAllowlistStatusRequested: + description: The request details + properties: + purpose: + description: Reason this contract needs to be added + example: Custom crafting contract + type: string + is_settlement_contract: + description: Attestation of whether this contract is a settlement contract + example: false + type: boolean + required: + - is_settlement_contract + - purpose + type: object + OperatorAllowlistStatusUpdated: + description: The update details + properties: + reason: + description: Why this action was performed + example: Contract meets expectations + type: string + required: + - reason + type: object + OperatorAllowlistContractStatusInternal: + allOf: + - $ref: '#/components/schemas/OperatorAllowlistContractStatus' + - properties: + org_name: + description: The name of the organisation associated with this contract + example: Immutable + nullable: true + type: string + org_tier: + $ref: '#/components/schemas/OrganisationTier' + required: + - org_name + - org_tier + type: object + OperatorAllowlistContractStatus: + properties: + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The address of the contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + status: + $ref: '#/components/schemas/OperatorAllowlistStatus' + details: + $ref: '#/components/schemas/OperatorAllowlistStatusDetails' + created_at: + description: When the contract status was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + created_by: + description: Who created the status + example: user@immutable.com + format: email + type: string + required: + - chain + - contract_address + - created_at + - created_by + - details + - status + type: object + Call: + example: + function_signature: "mint(address,uint256)" + target_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + function_args: + - 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + - "1" + properties: + target_address: + description: An Ethereum address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + x-go-type: common.Address + x-go-type-import: + path: github.com/ethereum/go-ethereum/common + name: common + function_signature: + description: The function signature + example: "mint(address,uint256)" + type: string + function_args: + description: The function arguments + example: + - 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + - "1" + items: + type: string + type: array + required: + - function_args + - function_signature + - target_address + type: object + SignCraftingRequest: + example: + expires_at: 2022-08-16T17:43:26.991388Z + reference_id: 67f7d464b8f04f6a9a3b8d3cb4a21af0 + calls: + - function_signature: "mint(address,uint256)" + target_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + function_args: + - 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + - "1" + - function_signature: "mint(address,uint256)" + target_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + function_args: + - 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + - "1" + multi_caller: + address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + name: Multicaller + version: "1" + properties: + multi_caller: + $ref: '#/components/schemas/SignCraftingRequest_multi_caller' + reference_id: + description: "The id of this request in the system that originates the crafting\ + \ request, specified as a 32 byte hex string" + example: 67f7d464b8f04f6a9a3b8d3cb4a21af0 + type: string + calls: + description: The calls to be signed + items: + $ref: '#/components/schemas/Call' + maxLength: 100 + minLength: 1 + type: array + expires_at: + description: The expiration time of the request + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + required: + - calls + - expires_at + - multi_caller + - reference_id + type: object + SignCraftingResult: + example: + signature: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + signer_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + properties: + signer_address: + description: An Ethereum address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + x-go-type: common.Address + x-go-type-import: + path: github.com/ethereum/go-ethereum/common + name: common + signature: + description: The signature of the request + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + required: + - signature + - signer_address + type: object + BasicAPIError: + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + link: https://docs.x.immutable.com/reference/#/ + message: all fields must be provided + properties: + message: + description: Error Message + example: all fields must be provided + type: string + link: + description: Link to IMX documentation that can help resolve this error + example: https://docs.x.immutable.com/reference/#/ + type: string + trace_id: + description: Trace ID of the initial request + example: e47634b79a5cd6894ddc9639ec4aad26 + type: string + required: + - link + - message + - trace_id + type: object + APIError400: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - VALIDATION_ERROR + example: VALIDATION_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: VALIDATION_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError404: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - RESOURCE_NOT_FOUND + example: RESOURCE_NOT_FOUND + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: RESOURCE_NOT_FOUND + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError500: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - INTERNAL_SERVER_ERROR + example: INTERNAL_SERVER_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: INTERNAL_SERVER_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError401: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - UNAUTHORISED_REQUEST + example: UNAUTHORISED_REQUEST + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: UNAUTHORISED_REQUEST + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError403: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - AUTHENTICATION_ERROR + example: AUTHENTICATION_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: AUTHENTICATION_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError429: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - TOO_MANY_REQUESTS_ERROR + example: TOO_MANY_REQUESTS_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: TOO_MANY_REQUESTS_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError409: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - CONFLICT_ERROR + example: CONFLICT_ERROR + type: string + details: + additionalProperties: true + description: Additional details to help resolve the error + nullable: true + type: object + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: CONFLICT_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: + key: "" + message: all fields must be provided + Item: + discriminator: + mapping: + NATIVE: '#/components/schemas/NativeItem' + ERC20: '#/components/schemas/ERC20Item' + ERC721: '#/components/schemas/ERC721Item' + ERC1155: '#/components/schemas/ERC1155Item' + ERC721_COLLECTION: '#/components/schemas/ERC721CollectionItem' + ERC1155_COLLECTION: '#/components/schemas/ERC1155CollectionItem' + propertyName: type + oneOf: + - $ref: '#/components/schemas/NativeItem' + - $ref: '#/components/schemas/ERC20Item' + - $ref: '#/components/schemas/ERC721Item' + - $ref: '#/components/schemas/ERC1155Item' + - $ref: '#/components/schemas/ERC721CollectionItem' + - $ref: '#/components/schemas/ERC1155CollectionItem' + AssetCollectionItem: + discriminator: + mapping: + ERC721_COLLECTION: '#/components/schemas/ERC721CollectionItem' + ERC1155_COLLECTION: '#/components/schemas/ERC1155CollectionItem' + propertyName: type + oneOf: + - $ref: '#/components/schemas/ERC721CollectionItem' + - $ref: '#/components/schemas/ERC1155CollectionItem' + FulfillmentDataRequest: + example: + fees: + - type: TAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + token_id: "123" + order_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + taker_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + properties: + order_id: + format: uuid + type: string + taker_address: + description: Address of the intended account fulfilling the order + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + fees: + example: + - type: TAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + items: + $ref: '#/components/schemas/Fee' + maxItems: 2 + minItems: 0 + type: array + token_id: + description: Token ID for the ERC721 or ERC1155 token when fulfilling a + collection order + example: "123" + pattern: \d+ + type: string + required: + - fees + - order_id + - taker_address + type: object + FulfillableOrder: + example: + token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + properties: + order: + $ref: '#/components/schemas/Order' + token_id: + description: Token ID for the ERC721 or ERC1155 token when fulfilling a + collection order + example: "123" + pattern: \d+ + type: string + extra_data: + type: string + required: + - extra_data + - order + type: object + UnfulfillableOrder: + example: + reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + properties: + order_id: + description: OrderID for the requested but unfulfillable order + example: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + type: string + token_id: + description: Token ID for the ERC721 or ERC1155 token when fulfilling a + collection order + example: "123" + pattern: \d+ + type: string + reason: + description: Nullable string containing error reason if the signing is unsuccessful + for the order + example: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + type: string + required: + - order_id + - reason + type: object + NativeItem: + properties: + type: + description: "Token type user is offering, which in this case is the native\ + \ IMX token" + enum: + - NATIVE + example: NATIVE + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - type + type: object + ERC20Item: + properties: + type: + description: "Token type user is offering, which in this case is ERC20" + enum: + - ERC20 + example: ERC20 + type: string + contract_address: + description: Address of ERC20 token + example: 0x0165878A594ca255338adfa4d48449f69242Eb8F + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - contract_address + - type + type: object + ERC721Item: + properties: + type: + description: "Token type user is offering, which in this case is ERC721" + enum: + - ERC721 + example: ERC721 + type: string + contract_address: + description: Address of ERC721 token + example: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + token_id: + description: ID of ERC721 token + example: "1" + pattern: \d+ + type: string + required: + - contract_address + - token_id + - type + type: object + ERC1155Item: + properties: + type: + description: "Token type user is offering, which in this case is ERC1155" + enum: + - ERC1155 + example: ERC1155 + type: string + contract_address: + description: Address of ERC1155 token + example: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + token_id: + description: ID of ERC1155 token + example: "1" + pattern: \d+ + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - contract_address + - token_id + - type + type: object + ERC721CollectionItem: + properties: + type: + description: "Token type user is offering, which in this case is ERC721" + enum: + - ERC721_COLLECTION + example: ERC721_COLLECTION + type: string + contract_address: + description: Address of ERC721 collection + example: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - contract_address + - type + type: object + ERC1155CollectionItem: + properties: + type: + description: "Token type user is offering, which in this case is ERC1155" + enum: + - ERC1155_COLLECTION + example: ERC1155_COLLECTION + type: string + contract_address: + description: Address of ERC1155 collection + example: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - contract_address + - type + type: object + CancelOrdersRequestBody: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + ids: + - 018a8c71-d7e4-e303-a2ef-318871ef7756 + - 238a8c71-d7e4-e303-a2ef-318871ef7778 + - 458a8c71-d7e4-e303-a2ef-318871ef7790 + signature: 291 + properties: + account_address: + description: Address of the user initiating the cancel request + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + orders: + description: List of order ids proposed for cancellation + items: + format: uuid + type: string + maxItems: 20 + minItems: 1 + type: array + uniqueItems: true + signature: + description: Signature generated by the user for the specific cancellation + request + example: 0x12345 + type: string + required: + - account_address + - orders + - signature + type: object + CreateListingRequestBody: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + order_hash: 0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: + - type: MAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + end_at: 2022-03-10T05:00:50.52Z + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + properties: + account_address: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + order_hash: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + buy: + description: Buy item for listing should either be NATIVE or ERC20 item + example: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + fees: + description: Buy fees should only include maker marketplace fees and should + be no more than two entries as more entires will incur more gas. It is + best practice to have this as few as possible. + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 2 + minItems: 0 + type: array + end_at: + description: Time after which the Order is considered expired + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + protocol_data: + $ref: '#/components/schemas/ProtocolData' + salt: + description: A random value added to the create Order request + example: "12686911856931635052326433555881236148" + type: string + sell: + description: Sell item for listing should be an ERC721 item + example: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + signature: + description: Digital signature generated by the user for the specific Order + example: 0x + type: string + start_at: + description: Time after which Order is considered active + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + required: + - account_address + - buy + - end_at + - fees + - order_hash + - protocol_data + - salt + - sell + - signature + - start_at + type: object + CreateBidRequestBody: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + order_hash: 0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: + - type: MAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + end_at: 2022-03-10T05:00:50.52Z + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + properties: + account_address: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + order_hash: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + buy: + description: Buy item for bid should either be ERC721 or ERC1155 item + example: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + fees: + description: Buy fees should only include maker marketplace fees and should + be no more than two entries as more entires will incur more gas. It is + best practice to have this as few as possible. + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 2 + minItems: 0 + type: array + end_at: + description: Time after which the Order is considered expired + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + protocol_data: + $ref: '#/components/schemas/ProtocolData' + salt: + description: A random value added to the create Order request + example: "12686911856931635052326433555881236148" + type: string + sell: + description: Sell item for bid should be an ERC20 item + example: + - type: ERC20 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "9750000000000000000" + items: + $ref: '#/components/schemas/ERC20Item' + maxItems: 1 + minItems: 1 + type: array + signature: + description: Digital signature generated by the user for the specific Order + example: 0x + type: string + start_at: + description: Time after which Order is considered active + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + required: + - account_address + - buy + - end_at + - fees + - order_hash + - protocol_data + - salt + - sell + - signature + - start_at + type: object + CreateCollectionBidRequestBody: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + order_hash: 0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: + - type: MAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + end_at: 2022-03-10T05:00:50.52Z + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + properties: + account_address: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + order_hash: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + buy: + description: Buy item for collection bid should either be ERC721 or ERC1155 + collection item + example: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + items: + $ref: '#/components/schemas/AssetCollectionItem' + maxItems: 1 + minItems: 1 + type: array + fees: + description: Buy fees should only include maker marketplace fees and should + be no more than two entries as more entires will incur more gas. It is + best practice to have this as few as possible. + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 2 + minItems: 0 + type: array + end_at: + description: Time after which the Order is considered expired + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + protocol_data: + $ref: '#/components/schemas/ProtocolData' + salt: + description: A random value added to the create Order request + example: "12686911856931635052326433555881236148" + type: string + sell: + description: Sell item for collection bid should be an ERC20 item + example: + - type: ERC20 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "9750000000000000000" + items: + $ref: '#/components/schemas/ERC20Item' + maxItems: 1 + minItems: 1 + type: array + signature: + description: Digital signature generated by the user for the specific Order + example: 0x + type: string + start_at: + description: Time after which Order is considered active + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + required: + - account_address + - buy + - end_at + - fees + - order_hash + - protocol_data + - salt + - sell + - signature + - start_at + type: object + Fee: + example: + amount: "2250000000000000000" + type: ROYALTY + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + properties: + amount: + description: Fee payable to recipient upon settlement + example: "2250000000000000000" + pattern: \d+ + type: string + type: + description: Fee type + enum: + - ROYALTY + - MAKER_ECOSYSTEM + - TAKER_ECOSYSTEM + - PROTOCOL + example: ROYALTY + type: string + recipient_address: + description: Wallet address of fee recipient + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + required: + - amount + - recipient_address + - type + type: object + Order: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + properties: + account_address: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + buy: + example: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + fees: + example: [] + items: + $ref: '#/components/schemas/Fee' + minItems: 0 + type: array + chain: + $ref: '#/components/schemas/Chain' + created_at: + description: Time the Order is created + example: 2022-03-07T07:20:50.52Z + format: date-time + type: string + end_at: + description: Time after which the Order is considered expired + example: 2022-03-10T05:00:50.52Z + format: date-time + type: string + id: + description: Global Order identifier + example: 018792C9-4AD7-8EC4-4038-9E05C598534A + type: string + order_hash: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + protocol_data: + $ref: '#/components/schemas/ProtocolData' + salt: + description: A random value added to the create Order request + example: "12686911856931635052326433555881236148" + type: string + sell: + example: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + signature: + description: Digital signature generated by the user for the specific Order + example: 0x + type: string + start_at: + description: Time after which Order is considered active + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + status: + $ref: '#/components/schemas/OrderStatus' + type: + description: Order type + enum: + - LISTING + - BID + - COLLECTION_BID + example: LISTING + type: string + updated_at: + description: Time the Order is last updated + example: 2022-03-07T07:20:50.52Z + format: date-time + type: string + fill_status: + $ref: '#/components/schemas/FillStatus' + required: + - account_address + - buy + - chain + - created_at + - end_at + - fees + - fill_status + - id + - order_hash + - protocol_data + - salt + - sell + - signature + - start_at + - status + - type + - updated_at + type: object + Trade: + example: + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + buyer_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + buyer_fees: [] + fees: [] + chain: + id: eip155:11155111 + name: sepolia + indexed_at: 2022-03-07T07:20:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + seller_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + maker_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + taker_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + properties: + buy: + description: Buy items are transferred from the taker to the maker. + example: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + buyer_address: + description: Deprecated. Use maker and taker addresses instead of buyer + and seller addresses. + example: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + type: string + buyer_fees: + description: Deprecated. Use fees instead. The taker always pays the fees. + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 1 + minItems: 0 + type: array + fees: + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 1 + minItems: 0 + type: array + chain: + $ref: '#/components/schemas/Chain' + order_id: + example: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + type: string + blockchain_metadata: + $ref: '#/components/schemas/TradeBlockchainMetadata' + indexed_at: + description: Time the on-chain trade event is indexed by the order book + system + example: 2022-03-07T07:20:50.52Z + format: date-time + type: string + id: + description: Global Trade identifier + example: 018792C9-4AD7-8EC4-4038-9E05C598534A + type: string + sell: + description: Sell items are transferred from the maker to the taker. + example: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + seller_address: + description: Deprecated. Use maker and taker addresses instead of buyer + and seller addresses. + example: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + type: string + maker_address: + example: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + type: string + taker_address: + example: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + type: string + required: + - blockchain_metadata + - buy + - buyer_address + - buyer_fees + - chain + - fees + - id + - indexed_at + - maker_address + - order_id + - sell + - seller_address + - taker_address + type: object + CancelOrdersResult: + example: + result: + successful_cancellations: + - 018a8c71-d7e4-e303-a2ef-318871ef7756 + - 458a8c71-d7e4-e303-a2ef-318871ef7778 + pending_cancellations: + - 238a8c71-d7e4-e303-a2ef-318871ef7778 + - 898a8c71-d7e4-e303-a2ef-318871ef7735 + failed_cancellations: + - order: 458a8c71-d7e4-e303-a2ef-318871ef7790 + reason_code: FILLED + - order: 338a8c71-d7e4-e303-a2ef-318871ef7342 + reason_code: FILLED + properties: + result: + $ref: '#/components/schemas/CancelOrdersResultData' + required: + - result + type: object + CancelOrdersResultData: + properties: + successful_cancellations: + description: Orders which were successfully cancelled + items: + type: string + maxItems: 10 + minItems: 0 + type: array + pending_cancellations: + description: Orders which are marked for cancellation but the cancellation + cannot be guaranteed + items: + type: string + maxItems: 10 + minItems: 0 + type: array + failed_cancellations: + description: Orders which failed to be cancelled + items: + $ref: '#/components/schemas/FailedOrderCancellation' + maxItems: 10 + minItems: 0 + type: array + required: + - failed_cancellations + - pending_cancellations + - successful_cancellations + type: object + FailedOrderCancellation: + properties: + order: + description: ID of the order which failed to be cancelled + example: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + type: string + reason_code: + description: Reason code indicating why the order failed to be cancelled + enum: + - FILLED + example: FILLED + type: string + required: + - order + - reason_code + type: object + ListingResult: + example: + result: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534B + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + type: + name: LISTING + updated_at: 2022-03-07T07:20:50.52Z + properties: + result: + $ref: '#/components/schemas/Order' + required: + - result + type: object + BidResult: + example: + result: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534B + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + type: BID + updated_at: 2022-03-07T07:20:50.52Z + properties: + result: + $ref: '#/components/schemas/Order' + required: + - result + type: object + CollectionBidResult: + example: + result: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: PARTIAL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + type: COLLECTION_BID + updated_at: 2022-03-07T07:20:50.52Z + properties: + result: + $ref: '#/components/schemas/Order' + required: + - result + type: object + ListListingsResult: + example: + page: + previous_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + next_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + result: + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + properties: + page: + $ref: '#/components/schemas/Page' + result: + items: + $ref: '#/components/schemas/Order' + maxItems: 200 + minItems: 0 + type: array + required: + - page + - result + type: object + ListBidsResult: + example: + page: + previous_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + next_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + result: + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + properties: + page: + $ref: '#/components/schemas/Page' + result: + items: + $ref: '#/components/schemas/Order' + maxItems: 200 + minItems: 0 + type: array + required: + - page + - result + type: object + ListCollectionBidsResult: + example: + page: + previous_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + next_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + result: + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: PARTIAL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: PARTIAL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + properties: + page: + $ref: '#/components/schemas/Page' + result: + items: + $ref: '#/components/schemas/Order' + maxItems: 200 + minItems: 0 + type: array + required: + - page + - result + type: object + TradeResult: + example: + result: + buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + buyer_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + buyer_fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534B + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + seller_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + maker_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + taker_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + updated_at: 2022-03-07T07:20:50.52Z + properties: + result: + $ref: '#/components/schemas/Trade' + required: + - result + type: object + ListTradeResult: + example: + page: + previous_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + next_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + result: + - buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + buyer_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + buyer_fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + seller_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + maker_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + taker_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + updated_at: 2022-03-07T07:20:50.52Z + - buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + buyer_address: 0x017406f3F27d507a1491976B7835CE5CD0fA647a + buyer_fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + seller_address: 0xC73349c545C1D757eb650cDc463A2f6dF1Ec41cb + maker_address: 0xC73349c545C1D757eb650cDc463A2f6dF1Ec41cb + taker_address: 0x017406f3F27d507a1491976B7835CE5CD0fA647a + updated_at: 2022-03-07T07:20:50.52Z + properties: + page: + $ref: '#/components/schemas/Page' + result: + items: + $ref: '#/components/schemas/Trade' + maxItems: 200 + minItems: 0 + type: array + required: + - page + - result + type: object + OrderStatus: + description: The Order status + discriminator: + mapping: + CANCELLED: '#/components/schemas/CancelledOrderStatus' + PENDING: '#/components/schemas/PendingOrderStatus' + ACTIVE: '#/components/schemas/ActiveOrderStatus' + INACTIVE: '#/components/schemas/InactiveOrderStatus' + FILLED: '#/components/schemas/FilledOrderStatus' + EXPIRED: '#/components/schemas/ExpiredOrderStatus' + propertyName: name + oneOf: + - $ref: '#/components/schemas/CancelledOrderStatus' + - $ref: '#/components/schemas/PendingOrderStatus' + - $ref: '#/components/schemas/ActiveOrderStatus' + - $ref: '#/components/schemas/InactiveOrderStatus' + - $ref: '#/components/schemas/FilledOrderStatus' + - $ref: '#/components/schemas/ExpiredOrderStatus' + CancelledOrderStatus: + properties: + name: + description: The order status indicating a order is has been cancelled or + about to be cancelled. + enum: + - CANCELLED + type: string + pending: + description: Whether the cancellation of the order is pending + example: false + type: boolean + cancellation_type: + description: Whether the cancellation was done on-chain or off-chain or + as a result of an underfunded account + enum: + - ON_CHAIN + - OFF_CHAIN + - UNDERFUNDED + example: ON_CHAIN + type: string + required: + - cancellation_type + - name + - pending + type: object + PendingOrderStatus: + properties: + name: + description: The order status that indicates the order is yet to be active + due to various reasons. + enum: + - PENDING + type: string + evaluated: + description: Whether the order has been evaluated after its creation + example: false + type: boolean + started: + description: Whether the order has reached its specified start time + example: false + type: boolean + required: + - evaluated + - name + - started + type: object + ActiveOrderStatus: + properties: + name: + description: The order status that indicates an order can be fulfilled. + enum: + - ACTIVE + type: string + required: + - name + type: object + InactiveOrderStatus: + properties: + name: + description: The order status that indicates an order cannot be fulfilled. + enum: + - INACTIVE + type: string + sufficient_approvals: + description: Whether the order offerer has sufficient approvals + example: false + type: boolean + sufficient_balances: + description: Whether the order offerer still has sufficient balance to complete + the order + example: false + type: boolean + required: + - name + - sufficient_approvals + - sufficient_balances + type: object + ExpiredOrderStatus: + properties: + name: + description: A terminal order status indicating that an order cannot be + fulfilled due to expiry. + enum: + - EXPIRED + type: string + required: + - name + type: object + FilledOrderStatus: + properties: + name: + description: A terminal order status indicating that an order has been fulfilled. + enum: + - FILLED + type: string + required: + - name + type: object + OrderStatusName: + description: The Order status + enum: + - PENDING + - ACTIVE + - INACTIVE + - FILLED + - EXPIRED + - CANCELLED + type: string + ProtocolData: + example: + order_type: FULL_RESTRICTED + counter: "92315562" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + properties: + order_type: + description: Seaport order type. Orders containing ERC721 tokens will need + to pass in the order type as FULL_RESTRICTED while orders with ERC1155 + tokens will need to pass in the order_type as PARTIAL_RESTRICTED + enum: + - FULL_RESTRICTED + - PARTIAL_RESTRICTED + example: FULL_RESTRICTED + type: string + counter: + description: big.Int or uint256 string for order counter + example: "92315562" + type: string + zone_address: + description: Immutable zone address + example: 0x12 + type: string + seaport_address: + description: Immutable Seaport contract address + example: 0x12 + type: string + seaport_version: + description: Immutable Seaport contract version + example: "1.5" + type: string + required: + - counter + - order_type + - seaport_address + - seaport_version + - zone_address + type: object + TradeBlockchainMetadata: + description: The metadata related to the transaction in which the activity occurred + nullable: true + properties: + transaction_hash: + description: The transaction hash of the trade + example: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + type: string + block_number: + description: EVM block number (uint64 as string) + example: "1" + type: string + transaction_index: + description: Transaction index in a block (uint32 as string) + example: "1" + type: string + log_index: + description: The log index of the fulfillment event in a block (uint32 as + string) + example: "1" + type: string + required: + - block_number + - log_index + - transaction_hash + - transaction_index + type: object + FillStatus: + description: "The ratio of the order that has been filled, an order that has\ + \ been fully filled will have the same numerator and denominator values." + properties: + numerator: + description: The numerator of the fill status + example: "1" + type: string + denominator: + description: The denominator of the fill status + example: "2" + type: string + required: + - denominator + - numerator + type: object + APIError501: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - NOT_IMPLEMENTED_ERROR + example: NOT_IMPLEMENTED_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: NOT_IMPLEMENTED_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + GetLinkedAddressesRes: + example: + linked_addresses: + - linked_addresses + - linked_addresses + properties: + linked_addresses: + description: The user's list of linked addresses + items: + description: The user's linked address + maxLength: 42 + pattern: "^0x[0-9a-fA-F]*$" + type: string + minItems: 0 + type: array + required: + - linked_addresses + type: object + EthAddress: + description: Ethereum address + example: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + type: string + CreatedAt: + description: Created at + example: 2021-08-31T00:00:00Z + format: date-time + type: string + Name: + description: Name + example: Test + type: string + WalletType: + description: Wallet type + example: MetaMask + type: string + Wallet: + description: Linked wallet + example: + address: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + updated_at: 2021-08-31T00:00:00Z + clientName: Passport Dashboard + name: Test + created_at: 2021-08-31T00:00:00Z + type: MetaMask + properties: + address: + description: Ethereum address + example: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + type: string + type: + description: Wallet type + example: MetaMask + type: string + created_at: + description: Created at + example: 2021-08-31T00:00:00Z + format: date-time + type: string + updated_at: + description: Created at + example: 2021-08-31T00:00:00Z + format: date-time + type: string + name: + description: Name + example: Test + type: string + clientName: + description: Name of client that linked the wallet + example: Passport Dashboard + type: string + required: + - address + - clientName + - created_at + - type + - updated_at + type: object + LinkWalletV2Request: + description: Link wallet V2 request + example: + wallet_address: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + signature: signature + type: io.metamask + nonce: nonce + properties: + type: + description: "This should be the EIP-6963 rdns value, if you're unable to\ + \ get the rdns value you can provide \"External\". If using WalletConnect\ + \ then provide \"WalletConnect\"." + example: io.metamask + maxLength: 32 + not: + enum: + - Passport + - com.immutable.passport + type: string + type: string + wallet_address: + description: The address of the external wallet being linked to Passport + example: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + signature: + description: The EIP-712 signature + type: string + nonce: + description: A unique identifier for the signature + type: string + required: + - nonce + - signature + - type + - wallet_address + type: object + UserInfo: + example: + sub: sub + passport_address: passport_address + linked_addresses: + - linked_addresses + - linked_addresses + email: email + properties: + sub: + description: The user's id + type: string + email: + description: The user's email address + type: string + passport_address: + description: The user's Passport address if it has been registered + maxLength: 42 + pattern: "^0x[0-9a-fA-F]*$" + type: string + linked_addresses: + description: The user's list of linked addresses + items: + description: The user's linked address + maxLength: 42 + pattern: "^0x[0-9a-fA-F]*$" + type: string + minItems: 0 + type: array + required: + - linked_addresses + - sub + type: object + NFTWithStack: + description: Stack + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: contract_type + external_url: https://some-url + token_id: token_id + updated_at: 2022-08-16T17:43:26.991388Z + balance: 1 + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + token_id: + description: Token id of NFT (uint256 as string) + type: string + stack_id: + description: Stack ID + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: Contract address + type: string + contract_type: + description: The contract type + type: string + created_at: + description: When the metadata was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the metadata was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: true + type: array + balance: + description: Balance of NFT + minimum: 1 + nullable: true + type: integer + required: + - animation_url + - attributes + - balance + - chain + - contract_address + - contract_type + - created_at + - description + - external_url + - image + - name + - stack_id + - token_id + - updated_at + - youtube_url + type: object + MarketPriceNativeToken: + example: + symbol: IMX + type: NATIVE + properties: + type: + description: "Token type user is offering, which in this case is the native\ + \ IMX token" + enum: + - NATIVE + example: NATIVE + type: string + symbol: + description: The symbol of token + example: IMX + nullable: true + type: string + required: + - symbol + - type + type: object + MarketPriceERC20Token: + properties: + type: + description: "Token type user is offering, which in this case is ERC20" + enum: + - ERC20 + example: ERC20 + type: string + contract_address: + description: Address of ERC20 token + example: 0x0165878A594ca255338adfa4d48449f69242Eb8F + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + symbol: + description: The symbol of token + example: ETH + nullable: true + type: string + decimals: + description: The decimals of token + example: 18 + nullable: true + type: integer + required: + - contract_address + - decimals + - symbol + - type + type: object + PaymentAmount: + description: Amount details + example: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + properties: + value: + description: The token amount value. This value is provided in the smallest + unit of the token (e.g. wei for ETH) + example: "9750000000000000000" + pattern: \d+ + type: string + value_in_eth: + description: The token amount value in ETH + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - value + - value_in_eth + type: object + MarketPriceFees: + example: + amount: "1000000000000000000" + type: ROYALTY + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + properties: + amount: + description: Fee in the payment currency + example: "1000000000000000000" + type: string + type: + description: Fee type + enum: + - ROYALTY + - MAKER_ECOSYSTEM + - TAKER_ECOSYSTEM + - PROTOCOL + example: ROYALTY + type: string + recipient_address: + description: Wallet address of fee recipient + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + required: + - amount + - recipient_address + - type + type: object + MarketPriceDetails: + description: Market Price details + example: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + properties: + token: + $ref: '#/components/schemas/MarketPriceDetails_token' + amount: + $ref: '#/components/schemas/PaymentAmount' + fee_inclusive_amount: + $ref: '#/components/schemas/PaymentAmount' + fees: + example: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + items: + $ref: '#/components/schemas/MarketPriceFees' + type: array + required: + - amount + - fee_inclusive_amount + - fees + - token + type: object + Listing: + example: + creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + properties: + listing_id: + description: Global Order identifier + example: 018792C9-4AD7-8EC4-4038-9E05C598534A + type: string + price_details: + $ref: '#/components/schemas/MarketPriceDetails' + token_id: + description: Token ID + example: "1" + type: string + contract_address: + description: ETH Address of collection that the asset belongs to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + creator: + description: ETH Address of listing creator + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: Amount of token included in the listing + example: "1" + type: string + required: + - amount + - contract_address + - creator + - listing_id + - price_details + - token_id + type: object + LastTrade: + description: Most recent trade + example: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + nullable: true + properties: + trade_id: + description: Trade ID + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + contract_address: + description: ETH Address of collection that the asset belongs to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + token_id: + description: Token id of the traded asset (uint256 as string) + example: "1" + type: string + price_details: + description: "Price details, list of payments involved in this trade" + items: + $ref: '#/components/schemas/MarketPriceDetails' + type: array + amount: + description: Amount of the trade (uint256 as string) + example: "1" + type: string + created_at: + description: When the trade was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + required: + - amount + - contract_address + - created_at + - price_details + - token_id + - trade_id + type: object + Market: + description: Market data + example: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + properties: + floor_listing: + allOf: + - $ref: '#/components/schemas/Listing' + description: Cheapest active listing + nullable: true + last_trade: + $ref: '#/components/schemas/LastTrade' + required: + - floor_listing + - last_trade + type: object + NFTBundle: + description: "NFT bundle includes NFT with stack, markets and listings" + example: + market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + nft_with_stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: contract_type + external_url: https://some-url + token_id: token_id + updated_at: 2022-08-16T17:43:26.991388Z + balance: 1 + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + nft_with_stack: + $ref: '#/components/schemas/NFTWithStack' + market: + allOf: + - $ref: '#/components/schemas/Market' + nullable: true + listings: + description: List of open listings for the stack. + items: + $ref: '#/components/schemas/Listing' + maxItems: 10 + type: array + required: + - listings + - market + - nft_with_stack + type: object + SearchNFTsResult: + description: Search NFTs result + example: + result: + - market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + nft_with_stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: contract_type + external_url: https://some-url + token_id: token_id + updated_at: 2022-08-16T17:43:26.991388Z + balance: 1 + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + nft_with_stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: contract_type + external_url: https://some-url + token_id: token_id + updated_at: 2022-08-16T17:43:26.991388Z + balance: 1 + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of nft bundles + items: + $ref: '#/components/schemas/NFTBundle' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + Stack: + description: Stack + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: contract_type + external_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + stack_id: + description: Stack ID + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: Contract address + type: string + contract_type: + description: The contract type + type: string + created_at: + description: When the metadata was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the metadata was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: true + type: array + required: + - animation_url + - attributes + - chain + - contract_address + - contract_type + - created_at + - description + - external_url + - image + - name + - stack_id + - updated_at + - youtube_url + type: object + StackBundle: + description: "Stack bundle includes stacks, markets and listings" + example: + market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: contract_type + external_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + stack_count: 1 + properties: + stack: + $ref: '#/components/schemas/Stack' + stack_count: + description: Total count of NFTs in the stack matching the filter params + example: 1 + type: integer + market: + allOf: + - $ref: '#/components/schemas/Market' + nullable: true + listings: + description: List of open listings for the stack. + items: + $ref: '#/components/schemas/Listing' + maxItems: 10 + type: array + required: + - listings + - market + - stack + - stack_count + type: object + SearchStacksResult: + description: Search stacks result + example: + result: + - market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: contract_type + external_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + stack_count: 1 + - market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: contract_type + external_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + stack_count: 1 + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of stack bundles + items: + $ref: '#/components/schemas/StackBundle' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + StackQuoteResult: + description: Stack quote result + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + properties: + chain: + $ref: '#/components/schemas/Chain' + stack_id: + format: uuid + type: string + market_stack: + $ref: '#/components/schemas/Market' + market_collection: + $ref: '#/components/schemas/Market' + required: + - chain + - market_collection + - market_stack + - stack_id + type: object + QuotesForStacksResult: + description: Quotes for stacks result + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of quotes + items: + $ref: '#/components/schemas/StackQuoteResult' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + MarketNft: + description: NFT market data + example: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + properties: + last_trade: + $ref: '#/components/schemas/LastTrade' + required: + - last_trade + type: object + NFTQuoteResult: + description: NFT quote result + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: token_id + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + market_nft: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + properties: + chain: + $ref: '#/components/schemas/Chain' + token_id: + description: Token id of NFT (uint256 as string) + type: string + market_stack: + $ref: '#/components/schemas/Market' + market_nft: + $ref: '#/components/schemas/MarketNft' + market_collection: + $ref: '#/components/schemas/Market' + required: + - chain + - market_collection + - market_nft + - market_stack + - token_id + type: object + QuotesForNFTsResult: + description: Quotes for NFTs result + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: token_id + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + market_nft: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: token_id + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + market_nft: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + - amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: + value_in_eth: "9750000000000000000" + value: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of quotes + items: + $ref: '#/components/schemas/NFTQuoteResult' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + fulfillment_data_200_response_result: + example: + fulfillable_orders: + - token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + - token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + unfulfillable_orders: + - reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + - reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + properties: + fulfillable_orders: + items: + $ref: '#/components/schemas/FulfillableOrder' + type: array + unfulfillable_orders: + items: + $ref: '#/components/schemas/UnfulfillableOrder' + type: array + required: + - fulfillable_orders + - unfulfillable_orders + type: object + fulfillment_data_200_response: + example: + result: + fulfillable_orders: + - token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + - token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + unfulfillable_orders: + - reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + - reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + properties: + result: + $ref: '#/components/schemas/fulfillment_data_200_response_result' + required: + - result + type: object + SalePayment_token: + description: The type of payment token + oneOf: + - $ref: '#/components/schemas/ActivityToken' + - $ref: '#/components/schemas/ActivityNativeToken' + NFTMetadataAttribute_value: + description: The metadata trait value + example: Happy + oneOf: + - type: string + - type: number + - type: boolean + SignCraftingRequest_multi_caller: + example: + address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + name: Multicaller + version: "1" + properties: + address: + description: An Ethereum address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + x-go-type: common.Address + x-go-type-import: + path: github.com/ethereum/go-ethereum/common + name: common + name: + description: The name of the multicaller contract + example: Multicaller + type: string + version: + description: The version of the multicaller contract + example: "1" + type: string + required: + - address + - name + - version + type: object + APIError400_allOf_details: + description: Additional details to help resolve the error + nullable: true + type: object + MarketPriceDetails_token: + description: Token details + discriminator: + mapping: + NATIVE: '#/components/schemas/MarketPriceNativeToken' + ERC20: '#/components/schemas/MarketPriceERC20Token' + propertyName: type + oneOf: + - $ref: '#/components/schemas/MarketPriceNativeToken' + - $ref: '#/components/schemas/MarketPriceERC20Token' + securitySchemes: + BearerAuth: + bearerFormat: JWT + scheme: bearer + type: http + ImmutableApiKey: + in: header + name: x-immutable-api-key + type: apiKey + x-go-name: ImmutableApiKey +x-tagGroups: +- name: Multi Rollup API + tags: + - activities + - chains + - collections + - nfts + - nft owners + - metadata + - tokens + - demopage + - verification + - operatorallowlist + - crafting + - listings + - orders +- name: Passport MR + tags: + - passport +- name: Passport Profile Service API + tags: + - passport profile +- name: Guardian + tags: + - guardian +- name: Indexer Marketplace APIs + tags: + - pricing + - stacks + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError400.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError400.md similarity index 94% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError400.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError400.md index ff0cf665..510c70fd 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError400.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError400.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.APIError400 +# Immutable.Api.Model.APIError400 ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError401.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError401.md similarity index 94% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError401.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError401.md index 54c4035b..0528b812 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError401.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError401.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.APIError401 +# Immutable.Api.Model.APIError401 ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError403.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError403.md similarity index 94% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError403.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError403.md index 0bcbed44..d7b59912 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError403.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError403.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.APIError403 +# Immutable.Api.Model.APIError403 ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError404.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError404.md similarity index 94% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError404.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError404.md index b516e00d..279fb3da 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError404.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError404.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.APIError404 +# Immutable.Api.Model.APIError404 ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError409.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError409.md similarity index 94% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError409.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError409.md index aec71860..5e13d11f 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError409.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError409.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.APIError409 +# Immutable.Api.Model.APIError409 ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError429.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError429.md similarity index 94% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError429.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError429.md index 134dba5c..911fb2ed 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError429.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError429.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.APIError429 +# Immutable.Api.Model.APIError429 ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError500.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError500.md similarity index 94% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError500.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError500.md index 28486278..0ccdb61d 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError500.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError500.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.APIError500 +# Immutable.Api.Model.APIError500 ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError501.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError501.md new file mode 100644 index 00000000..fe976c89 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/APIError501.md @@ -0,0 +1,14 @@ +# Immutable.Api.Model.APIError501 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | +**Code** | **string** | Error Code | +**Details** | **Object** | Additional details to help resolve the error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError400AllOf.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActiveOrderStatus.md similarity index 63% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError400AllOf.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActiveOrderStatus.md index 8d1ff79b..9d0b6124 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError400AllOf.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActiveOrderStatus.md @@ -1,11 +1,10 @@ -# Immutable.Search.Model.APIError400AllOf +# Immutable.Api.Model.ActiveOrderStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **string** | Error Code | -**Details** | **Object** | Additional details to help resolve the error | +**Name** | **string** | The order status that indicates an order can be fulfilled. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivitiesApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivitiesApi.md new file mode 100644 index 00000000..2773da73 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivitiesApi.md @@ -0,0 +1,320 @@ +# Immutable.Api.Api.ActivitiesApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetActivity**](ActivitiesApi.md#getactivity) | **GET** /v1/chains/{chain_name}/activities/{activity_id} | Get a single activity by ID | +| [**ListActivities**](ActivitiesApi.md#listactivities) | **GET** /v1/chains/{chain_name}/activities | List all activities | +| [**ListActivityHistory**](ActivitiesApi.md#listactivityhistory) | **GET** /v1/chains/{chain_name}/activity-history | List history of activities | + + +# **GetActivity** +> GetActivityResult GetActivity (string chainName, Guid activityId) + +Get a single activity by ID + +Get a single activity by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetActivityExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ActivitiesApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var activityId = "activityId_example"; // Guid | The id of activity + + try + { + // Get a single activity by ID + GetActivityResult result = apiInstance.GetActivity(chainName, activityId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ActivitiesApi.GetActivity: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetActivityWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single activity by ID + ApiResponse response = apiInstance.GetActivityWithHttpInfo(chainName, activityId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ActivitiesApi.GetActivityWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **activityId** | **Guid** | The id of activity | | + +### Return type + +[**GetActivityResult**](GetActivityResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListActivities** +> ListActivitiesResult ListActivities (string chainName, string? contractAddress = null, string? tokenId = null, string? accountAddress = null, ActivityType? activityType = null, string? transactionHash = null, string? pageCursor = null, int? pageSize = null) + +List all activities + +List all activities + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListActivitiesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ActivitiesApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string? | The contract address of NFT or ERC20 Token (optional) + var tokenId = 1; // string? | An `uint256` token id as string (optional) + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string? | The account address activity contains (optional) + var activityType = new ActivityType?(); // ActivityType? | The activity type (optional) + var transactionHash = 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e; // string? | The transaction hash of activity (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List all activities + ListActivitiesResult result = apiInstance.ListActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ActivitiesApi.ListActivities: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListActivitiesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all activities + ApiResponse response = apiInstance.ListActivitiesWithHttpInfo(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ActivitiesApi.ListActivitiesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string?** | The contract address of NFT or ERC20 Token | [optional] | +| **tokenId** | **string?** | An `uint256` token id as string | [optional] | +| **accountAddress** | **string?** | The account address activity contains | [optional] | +| **activityType** | [**ActivityType?**](ActivityType?.md) | The activity type | [optional] | +| **transactionHash** | **string?** | The transaction hash of activity | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListActivitiesResult**](ListActivitiesResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListActivityHistory** +> ListActivitiesResult ListActivityHistory (string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = null, string? contractAddress = null, ActivityType? activityType = null, string? pageCursor = null, int? pageSize = null) + +List history of activities + +List activities sorted by updated_at timestamp ascending, useful for time based data replication + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListActivityHistoryExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ActivitiesApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime | From indexed at including given date + var toUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | To indexed at including given date (optional) + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string? | The contract address of the collection (optional) + var activityType = new ActivityType?(); // ActivityType? | The activity type (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List history of activities + ListActivitiesResult result = apiInstance.ListActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ActivitiesApi.ListActivityHistory: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListActivityHistoryWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List history of activities + ApiResponse response = apiInstance.ListActivityHistoryWithHttpInfo(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ActivitiesApi.ListActivityHistoryWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime** | From indexed at including given date | | +| **toUpdatedAt** | **DateTime?** | To indexed at including given date | [optional] | +| **contractAddress** | **string?** | The contract address of the collection | [optional] | +| **activityType** | [**ActivityType?**](ActivityType?.md) | The activity type | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListActivitiesResult**](ListActivitiesResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Activity.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Activity.md new file mode 100644 index 00000000..27b9c413 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Activity.md @@ -0,0 +1,16 @@ +# Immutable.Api.Model.Activity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | Activity id in UUIDv4 format | +**Chain** | [**Chain**](Chain.md) | | +**Type** | **ActivityType** | | +**Details** | [**ActivityDetails**](ActivityDetails.md) | | +**UpdatedAt** | **DateTime** | The time activity was updated at | +**IndexedAt** | **DateTime** | The time activity was indexed | +**BlockchainMetadata** | [**BlockchainMetadata**](BlockchainMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityAsset.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityAsset.md new file mode 100644 index 00000000..6c045afe --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityAsset.md @@ -0,0 +1,14 @@ +# Immutable.Api.Model.ActivityAsset +The contract and asset details for this activity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractType** | **TokenContractType** | | +**ContractAddress** | **string** | The contract address | +**TokenId** | **string** | An `uint256` token id as string | +**Amount** | **string** | (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityDetails.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityDetails.md new file mode 100644 index 00000000..134c9770 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityDetails.md @@ -0,0 +1,16 @@ +# Immutable.Api.Model.ActivityDetails +The activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **string** | The account address the asset was deposited to | +**Amount** | **string** | The amount of assets withdrawn | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | +**From** | **string** | The account address the asset was withdrawn from | +**OrderId** | **string** | The id of order | +**Payment** | [**SalePayment**](SalePayment.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityNFT.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityNFT.md new file mode 100644 index 00000000..7f4748bf --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityNFT.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.ActivityNFT + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractType** | **NFTContractType** | | +**ContractAddress** | **string** | The token contract address | +**TokenId** | **string** | An `uint256` token id as string | +**Amount** | **string** | (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError401AllOf.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityNativeToken.md similarity index 63% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError401AllOf.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityNativeToken.md index 0cedcbf2..c46e0e48 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError401AllOf.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityNativeToken.md @@ -1,11 +1,10 @@ -# Immutable.Search.Model.APIError401AllOf +# Immutable.Api.Model.ActivityNativeToken ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **string** | Error Code | -**Details** | **Object** | Additional details to help resolve the error | +**Symbol** | **string** | The token symbol | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError403AllOf.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityToken.md similarity index 63% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError403AllOf.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityToken.md index 1422958b..1c0ac6c9 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError403AllOf.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityToken.md @@ -1,11 +1,11 @@ -# Immutable.Search.Model.APIError403AllOf +# Immutable.Api.Model.ActivityToken ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **string** | Error Code | -**Details** | **Object** | Additional details to help resolve the error | +**ContractType** | **TokenContractType** | | +**ContractAddress** | **string** | The contract address | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError404AllOf.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityType.md similarity index 63% rename from Assets/Shared/Scripts/Data/API/Search/docs/APIError404AllOf.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityType.md index 7990f3a6..63436ae5 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError404AllOf.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ActivityType.md @@ -1,11 +1,10 @@ -# Immutable.Search.Model.APIError404AllOf +# Immutable.Api.Model.ActivityType +The activity type ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **string** | Error Code | -**Details** | **Object** | Additional details to help resolve the error | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/AssetCollectionItem.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/AssetCollectionItem.md new file mode 100644 index 00000000..e1bd8a20 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/AssetCollectionItem.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.AssetCollectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC721 | +**ContractAddress** | **string** | Address of ERC1155 collection | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/AssetVerificationStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/AssetVerificationStatus.md new file mode 100644 index 00000000..56eed8c2 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/AssetVerificationStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.AssetVerificationStatus +The verification status for a given contract + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/BasicAPIError.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/BasicAPIError.md similarity index 92% rename from Assets/Shared/Scripts/Data/API/Search/docs/BasicAPIError.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/BasicAPIError.md index 4efe1bf7..a1b1928c 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/BasicAPIError.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/BasicAPIError.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.BasicAPIError +# Immutable.Api.Model.BasicAPIError ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/BidResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/BidResult.md new file mode 100644 index 00000000..aa9f8d58 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/BidResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.BidResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Order**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/BlockchainMetadata.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/BlockchainMetadata.md new file mode 100644 index 00000000..95d06152 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/BlockchainMetadata.md @@ -0,0 +1,14 @@ +# Immutable.Api.Model.BlockchainMetadata +The metadata related to blockchain transaction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionHash** | **string** | The transaction hash of the activity | +**BlockNumber** | **string** | EVM block number (uint64 as string) | +**TransactionIndex** | **string** | Transaction index in a block (uint32 as string) | +**LogIndex** | **string** | The log index of activity in a block (uint32 as string) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Burn.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Burn.md new file mode 100644 index 00000000..4f5fed79 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Burn.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.Burn +The burn activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The account address the asset was transferred from | +**Amount** | **string** | The amount of assets burnt | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Call.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Call.md new file mode 100644 index 00000000..98c3b49b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Call.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.Call + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TargetAddress** | **string** | An Ethereum address | +**FunctionSignature** | **string** | The function signature | +**FunctionArgs** | **List<string>** | The function arguments | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelOrdersRequestBody.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelOrdersRequestBody.md new file mode 100644 index 00000000..ec507041 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelOrdersRequestBody.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.CancelOrdersRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | Address of the user initiating the cancel request | +**Orders** | **List<Guid>** | List of order ids proposed for cancellation | +**Signature** | **string** | Signature generated by the user for the specific cancellation request | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelOrdersResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelOrdersResult.md new file mode 100644 index 00000000..4bd09639 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelOrdersResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.CancelOrdersResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**CancelOrdersResultData**](CancelOrdersResultData.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelOrdersResultData.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelOrdersResultData.md new file mode 100644 index 00000000..e2ed3525 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelOrdersResultData.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.CancelOrdersResultData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SuccessfulCancellations** | **List<string>** | Orders which were successfully cancelled | +**PendingCancellations** | **List<string>** | Orders which are marked for cancellation but the cancellation cannot be guaranteed | +**FailedCancellations** | [**List<FailedOrderCancellation>**](FailedOrderCancellation.md) | Orders which failed to be cancelled | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelledOrderStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelledOrderStatus.md new file mode 100644 index 00000000..3f9b6b7a --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CancelledOrderStatus.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.CancelledOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The order status indicating a order is has been cancelled or about to be cancelled. | +**Pending** | **bool** | Whether the cancellation of the order is pending | +**CancellationType** | **string** | Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/Chain.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Chain.md similarity index 92% rename from Assets/Shared/Scripts/Data/API/Search/docs/Chain.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Chain.md index a41ad899..41873c5e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/Chain.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Chain.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.Chain +# Immutable.Api.Model.Chain The chain details ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ChainWithDetails.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ChainWithDetails.md new file mode 100644 index 00000000..edda438c --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ChainWithDetails.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.ChainWithDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of chain | +**Name** | **string** | The name of chain | +**RpcUrl** | **string** | URL for RPC node | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ChainsApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ChainsApi.md new file mode 100644 index 00000000..5d4da29a --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ChainsApi.md @@ -0,0 +1,104 @@ +# Immutable.Api.Api.ChainsApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**ListChains**](ChainsApi.md#listchains) | **GET** /v1/chains | List supported chains | + + +# **ListChains** +> ListChainsResult ListChains (string? pageCursor = null, int? pageSize = null) + +List supported chains + +List supported chains + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListChainsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ChainsApi(config); + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List supported chains + ListChainsResult result = apiInstance.ListChains(pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ChainsApi.ListChains: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListChainsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List supported chains + ApiResponse response = apiInstance.ListChainsWithHttpInfo(pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ChainsApi.ListChainsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListChainsResult**](ListChainsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Collection.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Collection.md new file mode 100644 index 00000000..ebbcfe42 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Collection.md @@ -0,0 +1,23 @@ +# Immutable.Api.Model.Collection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**Name** | **string** | The name of the collection | +**Symbol** | **string** | The symbol of contract | +**ContractType** | **CollectionContractType** | | +**ContractAddress** | **string** | The address of the contract | +**Description** | **string** | The description of collection | +**Image** | **string** | The url of the collection image | +**ExternalLink** | **string** | The url of external link | +**ContractUri** | **string** | The uri for the metadata of the collection | [optional] +**BaseUri** | **string** | The metadata uri for nft | +**VerificationStatus** | **AssetVerificationStatus** | | +**IndexedAt** | **DateTime** | When the collection was first indexed | +**UpdatedAt** | **DateTime** | When the collection was last updated | +**MetadataSyncedAt** | **DateTime?** | When the collection metadata was last synced | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionBidResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionBidResult.md new file mode 100644 index 00000000..33fc23d6 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionBidResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.CollectionBidResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Order**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionContractType.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionContractType.md new file mode 100644 index 00000000..a413b3d1 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionContractType.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.CollectionContractType +The collection contract type + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionMetadata.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionMetadata.md new file mode 100644 index 00000000..1752d182 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionMetadata.md @@ -0,0 +1,16 @@ +# Immutable.Api.Model.CollectionMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the collection | +**Symbol** | **string** | The symbol of contract | +**Description** | **string** | The description of collection | +**Image** | **string** | The url of the collection image | +**ExternalLink** | **string** | The url of external link | +**ContractUri** | **string** | The uri for the metadata of the collection | +**BaseUri** | **string** | The metadata uri for nft | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionsApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionsApi.md new file mode 100644 index 00000000..1b078f95 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CollectionsApi.md @@ -0,0 +1,418 @@ +# Immutable.Api.Api.CollectionsApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetCollection**](CollectionsApi.md#getcollection) | **GET** /v1/chains/{chain_name}/collections/{contract_address} | Get collection by contract address | +| [**ListCollections**](CollectionsApi.md#listcollections) | **GET** /v1/chains/{chain_name}/collections | List all collections | +| [**ListCollectionsByNFTOwner**](CollectionsApi.md#listcollectionsbynftowner) | **GET** /v1/chains/{chain_name}/accounts/{account_address}/collections | List collections by NFT owner | +| [**RefreshCollectionMetadata**](CollectionsApi.md#refreshcollectionmetadata) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata | Refresh collection metadata | + + +# **GetCollection** +> GetCollectionResult GetCollection (string contractAddress, string chainName) + +Get collection by contract address + +Get collection by contract address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetCollectionExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new CollectionsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address contract + var chainName = imtbl-zkevm-testnet; // string | The name of chain + + try + { + // Get collection by contract address + GetCollectionResult result = apiInstance.GetCollection(contractAddress, chainName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CollectionsApi.GetCollection: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetCollectionWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get collection by contract address + ApiResponse response = apiInstance.GetCollectionWithHttpInfo(contractAddress, chainName); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CollectionsApi.GetCollectionWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address contract | | +| **chainName** | **string** | The name of chain | | + +### Return type + +[**GetCollectionResult**](GetCollectionResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListCollections** +> ListCollectionsResult ListCollections (string chainName, List? contractAddress = null, List? verificationStatus = null, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List all collections + +List all collections + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListCollectionsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new CollectionsApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = new List?(); // List? | List of contract addresses to filter by (optional) + var verificationStatus = new List?(); // List? | List of verification status to filter by (optional) + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List all collections + ListCollectionsResult result = apiInstance.ListCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CollectionsApi.ListCollections: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListCollectionsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all collections + ApiResponse response = apiInstance.ListCollectionsWithHttpInfo(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CollectionsApi.ListCollectionsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | [**List<string>?**](string.md) | List of contract addresses to filter by | [optional] | +| **verificationStatus** | [**List<AssetVerificationStatus>?**](AssetVerificationStatus.md) | List of verification status to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListCollectionsResult**](ListCollectionsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListCollectionsByNFTOwner** +> ListCollectionsResult ListCollectionsByNFTOwner (string accountAddress, string chainName, string? pageCursor = null, int? pageSize = null) + +List collections by NFT owner + +List collections by NFT owner account address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListCollectionsByNFTOwnerExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new CollectionsApi(config); + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | Account address + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List collections by NFT owner + ListCollectionsResult result = apiInstance.ListCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CollectionsApi.ListCollectionsByNFTOwner: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListCollectionsByNFTOwnerWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List collections by NFT owner + ApiResponse response = apiInstance.ListCollectionsByNFTOwnerWithHttpInfo(accountAddress, chainName, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CollectionsApi.ListCollectionsByNFTOwnerWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **accountAddress** | **string** | Account address | | +| **chainName** | **string** | The name of chain | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListCollectionsResult**](ListCollectionsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RefreshCollectionMetadata** +> RefreshCollectionMetadataResult RefreshCollectionMetadata (string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest) + +Refresh collection metadata + +Refresh collection metadata + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class RefreshCollectionMetadataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + // Configure Bearer token for authorization: BearerAuth + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new CollectionsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address contract + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var refreshCollectionMetadataRequest = new RefreshCollectionMetadataRequest(); // RefreshCollectionMetadataRequest | The request body + + try + { + // Refresh collection metadata + RefreshCollectionMetadataResult result = apiInstance.RefreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CollectionsApi.RefreshCollectionMetadata: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RefreshCollectionMetadataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Refresh collection metadata + ApiResponse response = apiInstance.RefreshCollectionMetadataWithHttpInfo(contractAddress, chainName, refreshCollectionMetadataRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CollectionsApi.RefreshCollectionMetadataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address contract | | +| **chainName** | **string** | The name of chain | | +| **refreshCollectionMetadataRequest** | [**RefreshCollectionMetadataRequest**](RefreshCollectionMetadataRequest.md) | The request body | | + +### Return type + +[**RefreshCollectionMetadataResult**](RefreshCollectionMetadataResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey), [BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CraftingApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CraftingApi.md new file mode 100644 index 00000000..25f92922 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CraftingApi.md @@ -0,0 +1,111 @@ +# Immutable.Api.Api.CraftingApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**SignCraftingPayload**](CraftingApi.md#signcraftingpayload) | **POST** /v1/chains/{chain_name}/crafting/sign | Sign a crafting payload | + + +# **SignCraftingPayload** +> SignCraftingResult SignCraftingPayload (string chainName, SignCraftingRequest signCraftingRequest) + +Sign a crafting payload + +Sign a crafting payload + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class SignCraftingPayloadExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new CraftingApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var signCraftingRequest = new SignCraftingRequest(); // SignCraftingRequest | The request body + + try + { + // Sign a crafting payload + SignCraftingResult result = apiInstance.SignCraftingPayload(chainName, signCraftingRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CraftingApi.SignCraftingPayload: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SignCraftingPayloadWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Sign a crafting payload + ApiResponse response = apiInstance.SignCraftingPayloadWithHttpInfo(chainName, signCraftingRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CraftingApi.SignCraftingPayloadWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **signCraftingRequest** | [**SignCraftingRequest**](SignCraftingRequest.md) | The request body | | + +### Return type + +[**SignCraftingResult**](SignCraftingResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateBidRequestBody.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateBidRequestBody.md new file mode 100644 index 00000000..5b76bbd8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateBidRequestBody.md @@ -0,0 +1,19 @@ +# Immutable.Api.Model.CreateBidRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | | +**OrderHash** | **string** | | +**Buy** | [**List<Item>**](Item.md) | Buy item for bid should either be ERC721 or ERC1155 item | +**Fees** | [**List<Fee>**](Fee.md) | Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. | +**EndAt** | **DateTime** | Time after which the Order is considered expired | +**ProtocolData** | [**ProtocolData**](ProtocolData.md) | | +**Salt** | **string** | A random value added to the create Order request | +**Sell** | [**List<ERC20Item>**](ERC20Item.md) | Sell item for bid should be an ERC20 item | +**Signature** | **string** | Digital signature generated by the user for the specific Order | +**StartAt** | **DateTime** | Time after which Order is considered active | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateCollectionBidRequestBody.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateCollectionBidRequestBody.md new file mode 100644 index 00000000..eb9456a3 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateCollectionBidRequestBody.md @@ -0,0 +1,19 @@ +# Immutable.Api.Model.CreateCollectionBidRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | | +**OrderHash** | **string** | | +**Buy** | [**List<AssetCollectionItem>**](AssetCollectionItem.md) | Buy item for collection bid should either be ERC721 or ERC1155 collection item | +**Fees** | [**List<Fee>**](Fee.md) | Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. | +**EndAt** | **DateTime** | Time after which the Order is considered expired | +**ProtocolData** | [**ProtocolData**](ProtocolData.md) | | +**Salt** | **string** | A random value added to the create Order request | +**Sell** | [**List<ERC20Item>**](ERC20Item.md) | Sell item for collection bid should be an ERC20 item | +**Signature** | **string** | Digital signature generated by the user for the specific Order | +**StartAt** | **DateTime** | Time after which Order is considered active | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateListingRequestBody.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateListingRequestBody.md new file mode 100644 index 00000000..3cf3c1f2 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateListingRequestBody.md @@ -0,0 +1,19 @@ +# Immutable.Api.Model.CreateListingRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | | +**OrderHash** | **string** | | +**Buy** | [**List<Item>**](Item.md) | Buy item for listing should either be NATIVE or ERC20 item | +**Fees** | [**List<Fee>**](Fee.md) | Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. | +**EndAt** | **DateTime** | Time after which the Order is considered expired | +**ProtocolData** | [**ProtocolData**](ProtocolData.md) | | +**Salt** | **string** | A random value added to the create Order request | +**Sell** | [**List<Item>**](Item.md) | Sell item for listing should be an ERC721 item | +**Signature** | **string** | Digital signature generated by the user for the specific Order | +**StartAt** | **DateTime** | Time after which Order is considered active | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateMintRequestRequest.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateMintRequestRequest.md new file mode 100644 index 00000000..094a1cad --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateMintRequestRequest.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.CreateMintRequestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assets** | [**List<MintAsset>**](MintAsset.md) | List of nft to be minted | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateMintRequestResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateMintRequestResult.md new file mode 100644 index 00000000..d5176c42 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/CreateMintRequestResult.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.CreateMintRequestResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImxMintRequestsLimit** | **string** | | +**ImxMintRequestsLimitReset** | **string** | | +**ImxRemainingMintRequests** | **string** | | +**ImxMintRequestsRetryAfter** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Deposit.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Deposit.md new file mode 100644 index 00000000..0e3bb40b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Deposit.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.Deposit +The deposit activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **string** | The account address the asset was deposited to | +**Amount** | **string** | The deposited amount | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC1155CollectionItem.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC1155CollectionItem.md new file mode 100644 index 00000000..eb8f731f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC1155CollectionItem.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.ERC1155CollectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC1155 | +**ContractAddress** | **string** | Address of ERC1155 collection | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC1155Item.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC1155Item.md new file mode 100644 index 00000000..b85a531d --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC1155Item.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.ERC1155Item + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC1155 | +**ContractAddress** | **string** | Address of ERC1155 token | +**TokenId** | **string** | ID of ERC1155 token | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC20Item.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC20Item.md new file mode 100644 index 00000000..263992d3 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC20Item.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.ERC20Item + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC20 | +**ContractAddress** | **string** | Address of ERC20 token | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC721CollectionItem.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC721CollectionItem.md new file mode 100644 index 00000000..957f010b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC721CollectionItem.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.ERC721CollectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC721 | +**ContractAddress** | **string** | Address of ERC721 collection | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC721Item.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC721Item.md new file mode 100644 index 00000000..06aadd7d --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ERC721Item.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.ERC721Item + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC721 | +**ContractAddress** | **string** | Address of ERC721 token | +**TokenId** | **string** | ID of ERC721 token | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ExpiredOrderStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ExpiredOrderStatus.md new file mode 100644 index 00000000..2f0b1ce0 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ExpiredOrderStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.ExpiredOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | A terminal order status indicating that an order cannot be fulfilled due to expiry. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FailedOrderCancellation.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FailedOrderCancellation.md new file mode 100644 index 00000000..5d4364e7 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FailedOrderCancellation.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.FailedOrderCancellation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | **string** | ID of the order which failed to be cancelled | +**ReasonCode** | **string** | Reason code indicating why the order failed to be cancelled | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/Fee.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Fee.md similarity index 79% rename from Assets/Shared/Scripts/Data/API/Search/docs/Fee.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Fee.md index 8d6e0469..a96ed808 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/Fee.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Fee.md @@ -1,10 +1,10 @@ -# Immutable.Search.Model.Fee +# Immutable.Api.Model.Fee ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Amount** | **string** | Fee in the payment currency | +**Amount** | **string** | Fee payable to recipient upon settlement | **Type** | **string** | Fee type | **RecipientAddress** | **string** | Wallet address of fee recipient | diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FillStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FillStatus.md new file mode 100644 index 00000000..9cb034a4 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FillStatus.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.FillStatus +The ratio of the order that has been filled, an order that has been fully filled will have the same numerator and denominator values. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Numerator** | **string** | The numerator of the fill status | +**Denominator** | **string** | The denominator of the fill status | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FilledOrderStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FilledOrderStatus.md new file mode 100644 index 00000000..952e3daf --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FilledOrderStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.FilledOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | A terminal order status indicating that an order has been fulfilled. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillableOrder.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillableOrder.md new file mode 100644 index 00000000..178af249 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillableOrder.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.FulfillableOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | [**Order**](Order.md) | | +**TokenId** | **string** | Token ID for the ERC721 or ERC1155 token when fulfilling a collection order | [optional] +**ExtraData** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillmentData200Response.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillmentData200Response.md new file mode 100644 index 00000000..946830cc --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillmentData200Response.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.FulfillmentData200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**FulfillmentData200ResponseResult**](FulfillmentData200ResponseResult.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillmentData200ResponseResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillmentData200ResponseResult.md new file mode 100644 index 00000000..4b172ef7 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillmentData200ResponseResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.FulfillmentData200ResponseResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FulfillableOrders** | [**List<FulfillableOrder>**](FulfillableOrder.md) | | +**UnfulfillableOrders** | [**List<UnfulfillableOrder>**](UnfulfillableOrder.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillmentDataRequest.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillmentDataRequest.md new file mode 100644 index 00000000..b5c2d13f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/FulfillmentDataRequest.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.FulfillmentDataRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Guid** | | +**TakerAddress** | **string** | Address of the intended account fulfilling the order | +**Fees** | [**List<Fee>**](Fee.md) | | +**TokenId** | **string** | Token ID for the ERC721 or ERC1155 token when fulfilling a collection order | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetActivityResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetActivityResult.md new file mode 100644 index 00000000..c411d939 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetActivityResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.GetActivityResult +Single activity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Activity**](Activity.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetCollectionResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetCollectionResult.md new file mode 100644 index 00000000..f26be88f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetCollectionResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.GetCollectionResult +Single Collection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | **Collection** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetLinkedAddressesRes.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetLinkedAddressesRes.md new file mode 100644 index 00000000..87930352 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetLinkedAddressesRes.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.GetLinkedAddressesRes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LinkedAddresses** | **List<string>** | The user's list of linked addresses | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetMetadataResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetMetadataResult.md new file mode 100644 index 00000000..e093908c --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetMetadataResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.GetMetadataResult +Single metadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Metadata**](Metadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetMintRequestResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetMintRequestResult.md new file mode 100644 index 00000000..ace6cc08 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetMintRequestResult.md @@ -0,0 +1,21 @@ +# Immutable.Api.Model.GetMintRequestResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**CollectionAddress** | **string** | The address of the contract | +**ReferenceId** | **string** | The reference id of this mint request | +**OwnerAddress** | **string** | The address of the owner of the NFT | +**TokenId** | **string** | An `uint256` token id as string. Only available when the mint request succeeds | +**Amount** | **string** | An `uint256` amount as string. Only relevant for mint requests on ERC1155 contracts | [optional] +**ActivityId** | **Guid?** | The id of the mint activity associated with this mint request | [optional] +**TransactionHash** | **string** | The transaction hash of the activity | +**CreatedAt** | **DateTime** | When the mint request was created | +**UpdatedAt** | **DateTime** | When the mint request was last updated | +**Error** | [**MintRequestErrorMessage**](MintRequestErrorMessage.md) | | +**Status** | **MintRequestStatus** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetNFTResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetNFTResult.md new file mode 100644 index 00000000..fa74a4dd --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetNFTResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.GetNFTResult +Single NFT + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**NFT**](NFT.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetTokenResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetTokenResult.md new file mode 100644 index 00000000..044a7dbb --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/GetTokenResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.GetTokenResult +Single Token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Token**](Token.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/InactiveOrderStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/InactiveOrderStatus.md new file mode 100644 index 00000000..40d03169 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/InactiveOrderStatus.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.InactiveOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The order status that indicates an order cannot be fulfilled. | +**SufficientApprovals** | **bool** | Whether the order offerer has sufficient approvals | +**SufficientBalances** | **bool** | Whether the order offerer still has sufficient balance to complete the order | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Item.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Item.md new file mode 100644 index 00000000..c305d0ee --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Item.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.Item + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is the native IMX token | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | +**ContractAddress** | **string** | Address of ERC1155 collection | +**TokenId** | **string** | ID of ERC1155 token | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/LastTrade.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/LastTrade.md similarity index 65% rename from Assets/Shared/Scripts/Data/API/Search/docs/LastTrade.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/LastTrade.md index 4486c5ad..d9c54588 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/LastTrade.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/LastTrade.md @@ -1,13 +1,14 @@ -# Immutable.Search.Model.LastTrade -Last trade +# Immutable.Api.Model.LastTrade +Most recent trade ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **TradeId** | **Guid** | Trade ID | +**ContractAddress** | **string** | ETH Address of collection that the asset belongs to | **TokenId** | **string** | Token id of the traded asset (uint256 as string) | -**PriceDetails** | [**List<PriceDetails>**](PriceDetails.md) | Price details, list of payments involved in this trade | +**PriceDetails** | [**List<MarketPriceDetails>**](MarketPriceDetails.md) | Price details, list of payments involved in this trade | **Amount** | **string** | Amount of the trade (uint256 as string) | **CreatedAt** | **DateTime** | When the trade was created | diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/LinkWalletV2Request.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/LinkWalletV2Request.md new file mode 100644 index 00000000..7597504c --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/LinkWalletV2Request.md @@ -0,0 +1,14 @@ +# Immutable.Api.Model.LinkWalletV2Request +Link wallet V2 request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | This should be the EIP-6963 rdns value, if you're unable to get the rdns value you can provide \"External\". If using WalletConnect then provide \"WalletConnect\". | +**WalletAddress** | **string** | The address of the external wallet being linked to Passport | +**Signature** | **string** | The EIP-712 signature | +**Nonce** | **string** | A unique identifier for the signature | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListActivitiesResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListActivitiesResult.md new file mode 100644 index 00000000..fc7f7d72 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListActivitiesResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.ListActivitiesResult +List activities response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<Activity>**](Activity.md) | List of activities | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListBidsResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListBidsResult.md new file mode 100644 index 00000000..7dcf2b94 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListBidsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListBidsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | [**Page**](Page.md) | | +**Result** | [**List<Order>**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListChainsResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListChainsResult.md new file mode 100644 index 00000000..9a522840 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListChainsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListChainsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<ChainWithDetails>**](ChainWithDetails.md) | List of chains | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListCollectionBidsResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListCollectionBidsResult.md new file mode 100644 index 00000000..9c06aa95 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListCollectionBidsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListCollectionBidsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | [**Page**](Page.md) | | +**Result** | [**List<Order>**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListCollectionOwnersResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListCollectionOwnersResult.md new file mode 100644 index 00000000..3805a9c9 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListCollectionOwnersResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListCollectionOwnersResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFTWithOwner>**](NFTWithOwner.md) | List of NFT owners | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListCollectionsResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListCollectionsResult.md new file mode 100644 index 00000000..421fb48e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListCollectionsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListCollectionsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | **List<Collection>** | List of collections | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListListingsResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListListingsResult.md new file mode 100644 index 00000000..91adfcb1 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListListingsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListListingsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | [**Page**](Page.md) | | +**Result** | [**List<Order>**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListMetadataResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListMetadataResult.md new file mode 100644 index 00000000..601c1a23 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListMetadataResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListMetadataResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<Metadata>**](Metadata.md) | List of metadata | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListMintRequestsResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListMintRequestsResult.md new file mode 100644 index 00000000..7dc0b246 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListMintRequestsResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.ListMintRequestsResult +List mint requests + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<GetMintRequestResult>**](GetMintRequestResult.md) | List of mint requests | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListNFTOwnersResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListNFTOwnersResult.md new file mode 100644 index 00000000..e0eb69a0 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListNFTOwnersResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListNFTOwnersResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFTOwner>**](NFTOwner.md) | List of nft owners | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListNFTsByOwnerResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListNFTsByOwnerResult.md new file mode 100644 index 00000000..128b1178 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListNFTsByOwnerResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListNFTsByOwnerResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFTWithBalance>**](NFTWithBalance.md) | List of NFTs by owner | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListNFTsResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListNFTsResult.md new file mode 100644 index 00000000..464c369e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListNFTsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListNFTsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFT>**](NFT.md) | List of NFTs | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListTokensResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListTokensResult.md new file mode 100644 index 00000000..885a621b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListTokensResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListTokensResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<Token>**](Token.md) | List of tokens | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListTradeResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListTradeResult.md new file mode 100644 index 00000000..65ce5ea4 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListTradeResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.ListTradeResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | [**Page**](Page.md) | | +**Result** | [**List<Trade>**](Trade.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/Listing.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Listing.md similarity index 72% rename from Assets/Shared/Scripts/Data/API/Search/docs/Listing.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Listing.md index 360ad385..70036e0e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/Listing.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Listing.md @@ -1,13 +1,13 @@ -# Immutable.Search.Model.Listing -Listing +# Immutable.Api.Model.Listing ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ListingId** | **string** | Global Order identifier | -**PriceDetails** | [**PriceDetails**](PriceDetails.md) | | +**PriceDetails** | [**MarketPriceDetails**](MarketPriceDetails.md) | | **TokenId** | **string** | Token ID | +**ContractAddress** | **string** | ETH Address of collection that the asset belongs to | **Creator** | **string** | ETH Address of listing creator | **Amount** | **string** | Amount of token included in the listing | diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListingResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListingResult.md new file mode 100644 index 00000000..a5516626 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ListingResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.ListingResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Order**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/Market.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Market.md similarity index 76% rename from Assets/Shared/Scripts/Data/API/Search/docs/Market.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Market.md index 077a316c..7a478ef2 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/Market.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Market.md @@ -1,11 +1,11 @@ -# Immutable.Search.Model.Market +# Immutable.Api.Model.Market Market data ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FloorListing** | [**Listing**](Listing.md) | | +**FloorListing** | [**Listing**](Listing.md) | Cheapest active listing | **LastTrade** | [**LastTrade**](LastTrade.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketNft.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketNft.md new file mode 100644 index 00000000..861ae587 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketNft.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.MarketNft +NFT market data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastTrade** | [**LastTrade**](LastTrade.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/PriceDetails.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceDetails.md similarity index 65% rename from Assets/Shared/Scripts/Data/API/Search/docs/PriceDetails.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceDetails.md index 87d14034..ba91fd5d 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/PriceDetails.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceDetails.md @@ -1,14 +1,14 @@ -# Immutable.Search.Model.PriceDetails -Price details +# Immutable.Api.Model.MarketPriceDetails +Market Price details ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Token** | [**PriceDetailsToken**](PriceDetailsToken.md) | | +**Token** | [**MarketPriceDetailsToken**](MarketPriceDetailsToken.md) | | **Amount** | [**PaymentAmount**](PaymentAmount.md) | | **FeeInclusiveAmount** | [**PaymentAmount**](PaymentAmount.md) | | -**Fees** | [**List<Fee>**](Fee.md) | | +**Fees** | [**List<MarketPriceFees>**](MarketPriceFees.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/PriceDetailsToken.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceDetailsToken.md similarity index 92% rename from Assets/Shared/Scripts/Data/API/Search/docs/PriceDetailsToken.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceDetailsToken.md index efe0d0e3..9a4b067b 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/PriceDetailsToken.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceDetailsToken.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.PriceDetailsToken +# Immutable.Api.Model.MarketPriceDetailsToken Token details ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/ERC20Token.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceERC20Token.md similarity index 92% rename from Assets/Shared/Scripts/Data/API/Search/docs/ERC20Token.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceERC20Token.md index 9fac9680..6bf3394e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/ERC20Token.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceERC20Token.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.ERC20Token +# Immutable.Api.Model.MarketPriceERC20Token ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceFees.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceFees.md new file mode 100644 index 00000000..598dbc6b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceFees.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.MarketPriceFees + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **string** | Fee in the payment currency | +**Type** | **string** | Fee type | +**RecipientAddress** | **string** | Wallet address of fee recipient | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/NativeToken.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceNativeToken.md similarity index 90% rename from Assets/Shared/Scripts/Data/API/Search/docs/NativeToken.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceNativeToken.md index 40928264..2b9329bc 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/NativeToken.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MarketPriceNativeToken.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.NativeToken +# Immutable.Api.Model.MarketPriceNativeToken ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Metadata.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Metadata.md new file mode 100644 index 00000000..dc941f8f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Metadata.md @@ -0,0 +1,21 @@ +# Immutable.Api.Model.Metadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | Metadata id in UUIDv4 format | +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The contract address of the metadata | +**CreatedAt** | **DateTime** | When the metadata was created | +**UpdatedAt** | **DateTime?** | When the metadata was last updated | +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external website link of NFT | [optional] +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube URL of NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MetadataApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MetadataApi.md new file mode 100644 index 00000000..52cb2073 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MetadataApi.md @@ -0,0 +1,524 @@ +# Immutable.Api.Api.MetadataApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetMetadata**](MetadataApi.md#getmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id} | Get metadata by ID | +| [**ListMetadata**](MetadataApi.md#listmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata | Get a list of metadata from the given contract | +| [**ListMetadataForChain**](MetadataApi.md#listmetadataforchain) | **GET** /v1/chains/{chain_name}/metadata | Get a list of metadata from the given chain | +| [**RefreshMetadataByID**](MetadataApi.md#refreshmetadatabyid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata | Refresh stacked metadata | +| [**RefreshNFTMetadataByTokenID**](MetadataApi.md#refreshnftmetadatabytokenid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata | Refresh NFT metadata | + + +# **GetMetadata** +> GetMetadataResult GetMetadata (string chainName, string contractAddress, Guid metadataId) + +Get metadata by ID + +Get metadata by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetMetadataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new MetadataApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | The address of metadata contract + var metadataId = "metadataId_example"; // Guid | The id of the metadata + + try + { + // Get metadata by ID + GetMetadataResult result = apiInstance.GetMetadata(chainName, contractAddress, metadataId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.GetMetadata: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetMetadataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get metadata by ID + ApiResponse response = apiInstance.GetMetadataWithHttpInfo(chainName, contractAddress, metadataId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.GetMetadataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | The address of metadata contract | | +| **metadataId** | **Guid** | The id of the metadata | | + +### Return type + +[**GetMetadataResult**](GetMetadataResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListMetadata** +> ListMetadataResult ListMetadata (string chainName, string contractAddress, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +Get a list of metadata from the given contract + +Get a list of metadata from the given contract + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListMetadataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new MetadataApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | The address of metadata contract + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // Get a list of metadata from the given contract + ListMetadataResult result = apiInstance.ListMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.ListMetadata: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListMetadataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a list of metadata from the given contract + ApiResponse response = apiInstance.ListMetadataWithHttpInfo(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.ListMetadataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | The address of metadata contract | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListMetadataResult**](ListMetadataResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListMetadataForChain** +> ListMetadataResult ListMetadataForChain (string chainName, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +Get a list of metadata from the given chain + +Get a list of metadata from the given chain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListMetadataForChainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new MetadataApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // Get a list of metadata from the given chain + ListMetadataResult result = apiInstance.ListMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.ListMetadataForChain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListMetadataForChainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a list of metadata from the given chain + ApiResponse response = apiInstance.ListMetadataForChainWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.ListMetadataForChainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListMetadataResult**](ListMetadataResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RefreshMetadataByID** +> MetadataRefreshRateLimitResult RefreshMetadataByID (string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest) + +Refresh stacked metadata + +Refresh stacked metadata + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class RefreshMetadataByIDExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new MetadataApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = "contractAddress_example"; // string | Contract address + var refreshMetadataByIDRequest = new RefreshMetadataByIDRequest(); // RefreshMetadataByIDRequest | NFT Metadata Refresh Request + + try + { + // Refresh stacked metadata + MetadataRefreshRateLimitResult result = apiInstance.RefreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.RefreshMetadataByID: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RefreshMetadataByIDWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Refresh stacked metadata + ApiResponse response = apiInstance.RefreshMetadataByIDWithHttpInfo(chainName, contractAddress, refreshMetadataByIDRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.RefreshMetadataByIDWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | Contract address | | +| **refreshMetadataByIDRequest** | [**RefreshMetadataByIDRequest**](RefreshMetadataByIDRequest.md) | NFT Metadata Refresh Request | | + +### Return type + +[**MetadataRefreshRateLimitResult**](MetadataRefreshRateLimitResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Accepted | * imx-refreshes-limit -
* imx-refresh-limit-reset -
* imx-remaining-refreshes -
* retry-after -
| +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Metadata refreshes (429) | * imx-refreshes-limit -
* imx-refresh-limit-reset -
* imx-remaining-refreshes -
* Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RefreshNFTMetadataByTokenID** +> MetadataRefreshRateLimitResult RefreshNFTMetadataByTokenID (string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest) + +Refresh NFT metadata + +Refresh NFT metadata + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class RefreshNFTMetadataByTokenIDExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new MetadataApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + var refreshNFTMetadataByTokenIDRequest = new RefreshNFTMetadataByTokenIDRequest(); // RefreshNFTMetadataByTokenIDRequest | the request body + + try + { + // Refresh NFT metadata + MetadataRefreshRateLimitResult result = apiInstance.RefreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.RefreshNFTMetadataByTokenID: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RefreshNFTMetadataByTokenIDWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Refresh NFT metadata + ApiResponse response = apiInstance.RefreshNFTMetadataByTokenIDWithHttpInfo(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.RefreshNFTMetadataByTokenIDWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **refreshNFTMetadataByTokenIDRequest** | [**RefreshNFTMetadataByTokenIDRequest**](RefreshNFTMetadataByTokenIDRequest.md) | the request body | | + +### Return type + +[**MetadataRefreshRateLimitResult**](MetadataRefreshRateLimitResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Accepted | * imx-refreshes-limit -
* imx-refresh-limit-reset -
* imx-remaining-refreshes -
* retry-after -
| +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Metadata refreshes (429) | * imx-refreshes-limit -
* imx-refresh-limit-reset -
* imx-remaining-refreshes -
* Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MetadataRefreshRateLimitResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MetadataRefreshRateLimitResult.md new file mode 100644 index 00000000..e3a5db93 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MetadataRefreshRateLimitResult.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.MetadataRefreshRateLimitResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImxRefreshesLimit** | **string** | | +**ImxRefreshLimitReset** | **string** | | +**ImxRemainingRefreshes** | **string** | | +**RetryAfter** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Mint.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Mint.md new file mode 100644 index 00000000..101d4fe6 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Mint.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.Mint +The mint activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **string** | The account address the asset was minted to | +**Amount** | **string** | The minted amount | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MintAsset.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MintAsset.md new file mode 100644 index 00000000..827c7576 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MintAsset.md @@ -0,0 +1,14 @@ +# Immutable.Api.Model.MintAsset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReferenceId** | **string** | The id of this asset in the system that originates the mint request | +**OwnerAddress** | **string** | The address of the receiver | +**TokenId** | **string** | An optional `uint256` token id as string. Required for ERC1155 collections. | [optional] +**Amount** | **string** | Optional mount of tokens to mint. Required for ERC1155 collections. ERC712 collections can omit this field or set it to 1 | [optional] +**Metadata** | [**NFTMetadataRequest**](NFTMetadataRequest.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MintRequestErrorMessage.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MintRequestErrorMessage.md new file mode 100644 index 00000000..f173b315 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MintRequestErrorMessage.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.MintRequestErrorMessage +The error details in case the mint request fails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | An error message in case the mint request fails | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MintRequestStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MintRequestStatus.md new file mode 100644 index 00000000..8bef50da --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/MintRequestStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.MintRequestStatus +The status of the mint request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFT.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFT.md new file mode 100644 index 00000000..49d72187 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFT.md @@ -0,0 +1,26 @@ +# Immutable.Api.Model.NFT + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**TokenId** | **string** | An `uint256` token id as string | +**ContractAddress** | **string** | The contract address of the NFT | +**ContractType** | **NFTContractType** | | +**IndexedAt** | **DateTime** | When the NFT was first indexed | +**UpdatedAt** | **DateTime** | When the NFT owner was last updated | +**MetadataSyncedAt** | **DateTime?** | When NFT metadata was last synced | +**MetadataId** | **Guid?** | The id of the metadata of this NFT | [optional] +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalLink** | **string** | (deprecated - use external_url instead) The external website link of NFT | +**ExternalUrl** | **string** | The external website link of NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube URL of NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of NFT Metadata attributes | +**TotalSupply** | **string** | The total supply of NFT | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTBundle.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTBundle.md new file mode 100644 index 00000000..a681f58f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTBundle.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.NFTBundle +NFT bundle includes NFT with stack, markets and listings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NftWithStack** | [**NFTWithStack**](NFTWithStack.md) | | +**Market** | [**Market**](Market.md) | | +**Listings** | [**List<Listing>**](Listing.md) | List of open listings for the stack. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTContractType.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTContractType.md new file mode 100644 index 00000000..6d699834 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTContractType.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.NFTContractType +The contract type for an NFT + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/NFTMetadataAttribute.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTMetadataAttribute.md similarity index 91% rename from Assets/Shared/Scripts/Data/API/Search/docs/NFTMetadataAttribute.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTMetadataAttribute.md index cb872ba3..b1b1965a 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/NFTMetadataAttribute.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTMetadataAttribute.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.NFTMetadataAttribute +# Immutable.Api.Model.NFTMetadataAttribute ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/NFTMetadataAttributeValue.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTMetadataAttributeValue.md similarity index 85% rename from Assets/Shared/Scripts/Data/API/Search/docs/NFTMetadataAttributeValue.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTMetadataAttributeValue.md index 92ea0812..b61ea6d5 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/NFTMetadataAttributeValue.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTMetadataAttributeValue.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.NFTMetadataAttributeValue +# Immutable.Api.Model.NFTMetadataAttributeValue The metadata trait value ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTMetadataRequest.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTMetadataRequest.md new file mode 100644 index 00000000..c76c8aa8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTMetadataRequest.md @@ -0,0 +1,17 @@ +# Immutable.Api.Model.NFTMetadataRequest +The NFT metadata. Total size of this object should not exceed 16 KiB + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the NFT | [optional] +**Description** | **string** | The description of the NFT | [optional] +**Image** | **string** | The image url of the NFT | [optional] +**ExternalUrl** | **string** | The external link of the NFT | [optional] +**AnimationUrl** | **string** | The animation url of the NFT | [optional] +**YoutubeUrl** | **string** | The youtube link of the NFT | [optional] +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTOwner.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTOwner.md new file mode 100644 index 00000000..e5859488 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTOwner.md @@ -0,0 +1,15 @@ +# Immutable.Api.Model.NFTOwner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of NFT contract | +**TokenId** | **string** | An `uint256` token id as string | +**AccountAddress** | **string** | The account address of the owner of the NFT | +**Balance** | **string** | The amount of owned tokens (uint256 as string) | +**UpdatedAt** | **DateTime** | When the NFT owner was last updated | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/NFTQuoteResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTQuoteResult.md similarity index 73% rename from Assets/Shared/Scripts/Data/API/Search/docs/NFTQuoteResult.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTQuoteResult.md index e40aca36..28627bc1 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/NFTQuoteResult.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTQuoteResult.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.NFTQuoteResult +# Immutable.Api.Model.NFTQuoteResult NFT quote result ## Properties @@ -6,9 +6,9 @@ NFT quote result Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Chain** | [**Chain**](Chain.md) | | -**TokenId** | **string** | | +**TokenId** | **string** | Token id of NFT (uint256 as string) | **MarketStack** | [**Market**](Market.md) | | -**MarketNft** | [**Market**](Market.md) | | +**MarketNft** | [**MarketNft**](MarketNft.md) | | **MarketCollection** | [**Market**](Market.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTSale.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTSale.md new file mode 100644 index 00000000..5b434128 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTSale.md @@ -0,0 +1,15 @@ +# Immutable.Api.Model.NFTSale +The NFT Sale activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **string** | The id of order | +**To** | **string** | The account address of buyer | +**From** | **string** | The account address of seller | +**Asset** | [**List<ActivityNFT>**](ActivityNFT.md) | | +**Payment** | [**SalePayment**](SalePayment.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTWithBalance.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTWithBalance.md new file mode 100644 index 00000000..0910551f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTWithBalance.md @@ -0,0 +1,25 @@ +# Immutable.Api.Model.NFTWithBalance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**TokenId** | **string** | An `uint256` token id as string | +**ContractAddress** | **string** | The contract address of the NFT | +**ContractType** | **NFTContractType** | | +**IndexedAt** | **DateTime** | When the NFT was first indexed | +**UpdatedAt** | **DateTime** | When the NFT owner was last updated | +**MetadataSyncedAt** | **DateTime?** | When NFT metadata was last synced | +**MetadataId** | **Guid?** | The id of the metadata of this NFT | [optional] +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalLink** | **string** | The external website link of NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube URL of NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | +**Balance** | **string** | The amount of this NFT this account owns | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTWithOwner.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTWithOwner.md new file mode 100644 index 00000000..288e1810 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTWithOwner.md @@ -0,0 +1,15 @@ +# Immutable.Api.Model.NFTWithOwner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of NFT contract | +**TokenId** | **string** | An `uint256` token id as string | +**AccountAddress** | **string** | The account address of the owner of the NFT | +**Balance** | **string** | The amount of owned tokens (uint256 as string) | +**UpdatedAt** | **DateTime** | When the owner last changed for the given NFT | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTWithStack.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTWithStack.md new file mode 100644 index 00000000..19c98f3e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NFTWithStack.md @@ -0,0 +1,25 @@ +# Immutable.Api.Model.NFTWithStack +Stack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TokenId** | **string** | Token id of NFT (uint256 as string) | +**StackId** | **Guid** | Stack ID | +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | Contract address | +**ContractType** | **string** | The contract type | +**CreatedAt** | **DateTime** | When the metadata was created | +**UpdatedAt** | **DateTime** | When the metadata was last updated | +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external website link of NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube URL of NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | +**Balance** | **int?** | Balance of NFT | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NativeItem.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NativeItem.md new file mode 100644 index 00000000..61c1fbc6 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NativeItem.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.NativeItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is the native IMX token | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NftOwnersApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NftOwnersApi.md new file mode 100644 index 00000000..ee602956 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NftOwnersApi.md @@ -0,0 +1,316 @@ +# Immutable.Api.Api.NftOwnersApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**ListAllNFTOwners**](NftOwnersApi.md#listallnftowners) | **GET** /v1/chains/{chain_name}/nft-owners | List all NFT owners | +| [**ListNFTOwners**](NftOwnersApi.md#listnftowners) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners | List NFT owners by token ID | +| [**ListOwnersByContractAddress**](NftOwnersApi.md#listownersbycontractaddress) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/owners | List owners by contract address | + + +# **ListAllNFTOwners** +> ListNFTOwnersResult ListAllNFTOwners (string chainName, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List all NFT owners + +List all NFT owners on a chain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListAllNFTOwnersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftOwnersApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List all NFT owners + ListNFTOwnersResult result = apiInstance.ListAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftOwnersApi.ListAllNFTOwners: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListAllNFTOwnersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all NFT owners + ApiResponse response = apiInstance.ListAllNFTOwnersWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftOwnersApi.ListAllNFTOwnersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTOwnersResult**](ListNFTOwnersResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListNFTOwners** +> ListNFTOwnersResult ListNFTOwners (string contractAddress, string tokenId, string chainName, string? pageCursor = null, int? pageSize = null) + +List NFT owners by token ID + +List NFT owners by token ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListNFTOwnersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftOwnersApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var tokenId = 1; // string | An `uint256` token id as string + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List NFT owners by token ID + ListNFTOwnersResult result = apiInstance.ListNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftOwnersApi.ListNFTOwners: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListNFTOwnersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List NFT owners by token ID + ApiResponse response = apiInstance.ListNFTOwnersWithHttpInfo(contractAddress, tokenId, chainName, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftOwnersApi.ListNFTOwnersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **tokenId** | **string** | An `uint256` token id as string | | +| **chainName** | **string** | The name of chain | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTOwnersResult**](ListNFTOwnersResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListOwnersByContractAddress** +> ListCollectionOwnersResult ListOwnersByContractAddress (string contractAddress, string chainName, List? accountAddress = null, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List owners by contract address + +List owners by contract address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListOwnersByContractAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftOwnersApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var accountAddress = new List?(); // List? | List of account addresses to filter by (optional) + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List owners by contract address + ListCollectionOwnersResult result = apiInstance.ListOwnersByContractAddress(contractAddress, chainName, accountAddress, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftOwnersApi.ListOwnersByContractAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListOwnersByContractAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List owners by contract address + ApiResponse response = apiInstance.ListOwnersByContractAddressWithHttpInfo(contractAddress, chainName, accountAddress, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftOwnersApi.ListOwnersByContractAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **accountAddress** | [**List<string>?**](string.md) | List of account addresses to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListCollectionOwnersResult**](ListCollectionOwnersResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NftsApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NftsApi.md new file mode 100644 index 00000000..c03e5d73 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/NftsApi.md @@ -0,0 +1,743 @@ +# Immutable.Api.Api.NftsApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateMintRequest**](NftsApi.md#createmintrequest) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests | Mint NFTs | +| [**GetMintRequest**](NftsApi.md#getmintrequest) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id} | Get mint request by reference ID | +| [**GetNFT**](NftsApi.md#getnft) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id} | Get NFT by token ID | +| [**ListAllNFTs**](NftsApi.md#listallnfts) | **GET** /v1/chains/{chain_name}/nfts | List all NFTs | +| [**ListMintRequests**](NftsApi.md#listmintrequests) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests | List mint requests | +| [**ListNFTs**](NftsApi.md#listnfts) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts | List NFTs by contract address | +| [**ListNFTsByAccountAddress**](NftsApi.md#listnftsbyaccountaddress) | **GET** /v1/chains/{chain_name}/accounts/{account_address}/nfts | List NFTs by account address | + + +# **CreateMintRequest** +> CreateMintRequestResult CreateMintRequest (string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest) + +Mint NFTs + +Create a mint request to mint a set of NFTs for a given collection + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class CreateMintRequestExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new NftsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + var createMintRequestRequest = new CreateMintRequestRequest(); // CreateMintRequestRequest | Create Mint Request Body + + try + { + // Mint NFTs + CreateMintRequestResult result = apiInstance.CreateMintRequest(contractAddress, chainName, createMintRequestRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.CreateMintRequest: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateMintRequestWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Mint NFTs + ApiResponse response = apiInstance.CreateMintRequestWithHttpInfo(contractAddress, chainName, createMintRequestRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.CreateMintRequestWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **createMintRequestRequest** | [**CreateMintRequestRequest**](CreateMintRequestRequest.md) | Create Mint Request Body | | + +### Return type + +[**CreateMintRequestResult**](CreateMintRequestResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Accepted | * imx-mint-requests-limit -
* imx-mint-requests-limit-reset -
* imx-remaining-mint-requests -
* imx-mint-requests-retry-after -
| +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **409** | Conflict (409) | - | +| **429** | Too Many mint requests (429) | * imx-mint-requests-limit -
* imx-mint-requests-limit-reset -
* imx-remaining-mint-requests -
* imx-mint-requests-retry-after -
* Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMintRequest** +> ListMintRequestsResult GetMintRequest (string contractAddress, string chainName, string referenceId) + +Get mint request by reference ID + +Retrieve the status of a mint request identified by its reference_id + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetMintRequestExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new NftsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + var referenceId = 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0; // string | The id of the mint request + + try + { + // Get mint request by reference ID + ListMintRequestsResult result = apiInstance.GetMintRequest(contractAddress, chainName, referenceId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.GetMintRequest: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetMintRequestWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get mint request by reference ID + ApiResponse response = apiInstance.GetMintRequestWithHttpInfo(contractAddress, chainName, referenceId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.GetMintRequestWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **referenceId** | **string** | The id of the mint request | | + +### Return type + +[**ListMintRequestsResult**](ListMintRequestsResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetNFT** +> GetNFTResult GetNFT (string contractAddress, string tokenId, string chainName) + +Get NFT by token ID + +Get NFT by token ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetNFTExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftsApi(config); + var contractAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | The address of NFT contract + var tokenId = 1; // string | An `uint256` token id as string + var chainName = imtbl-zkevm-testnet; // string | The name of chain + + try + { + // Get NFT by token ID + GetNFTResult result = apiInstance.GetNFT(contractAddress, tokenId, chainName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.GetNFT: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetNFTWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get NFT by token ID + ApiResponse response = apiInstance.GetNFTWithHttpInfo(contractAddress, tokenId, chainName); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.GetNFTWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of NFT contract | | +| **tokenId** | **string** | An `uint256` token id as string | | +| **chainName** | **string** | The name of chain | | + +### Return type + +[**GetNFTResult**](GetNFTResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListAllNFTs** +> ListNFTsResult ListAllNFTs (string chainName, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List all NFTs + +List all NFTs on a chain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListAllNFTsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftsApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List all NFTs + ListNFTsResult result = apiInstance.ListAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.ListAllNFTs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListAllNFTsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all NFTs + ApiResponse response = apiInstance.ListAllNFTsWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.ListAllNFTsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTsResult**](ListNFTsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListMintRequests** +> ListMintRequestsResult ListMintRequests (string contractAddress, string chainName, string? pageCursor = null, int? pageSize = null, MintRequestStatus? status = null) + +List mint requests + +Retrieve the status of all mints for a given contract address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListMintRequestsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new NftsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + var status = new MintRequestStatus?(); // MintRequestStatus? | The status of the mint request (optional) + + try + { + // List mint requests + ListMintRequestsResult result = apiInstance.ListMintRequests(contractAddress, chainName, pageCursor, pageSize, status); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.ListMintRequests: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListMintRequestsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List mint requests + ApiResponse response = apiInstance.ListMintRequestsWithHttpInfo(contractAddress, chainName, pageCursor, pageSize, status); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.ListMintRequestsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | +| **status** | [**MintRequestStatus?**](MintRequestStatus?.md) | The status of the mint request | [optional] | + +### Return type + +[**ListMintRequestsResult**](ListMintRequestsResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListNFTs** +> ListNFTsResult ListNFTs (string contractAddress, string chainName, List? tokenId = null, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List NFTs by contract address + +List NFTs by contract address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListNFTsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | Contract address + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var tokenId = new List?(); // List? | List of token IDs to filter by (optional) + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List NFTs by contract address + ListNFTsResult result = apiInstance.ListNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.ListNFTs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListNFTsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List NFTs by contract address + ApiResponse response = apiInstance.ListNFTsWithHttpInfo(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.ListNFTsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | Contract address | | +| **chainName** | **string** | The name of chain | | +| **tokenId** | [**List<string>?**](string.md) | List of token IDs to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTsResult**](ListNFTsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListNFTsByAccountAddress** +> ListNFTsByOwnerResult ListNFTsByAccountAddress (string accountAddress, string chainName, string? contractAddress = null, List? tokenId = null, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List NFTs by account address + +List NFTs by account address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListNFTsByAccountAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftsApi(config); + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | Account address + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string? | The address of contract (optional) + var tokenId = new List?(); // List? | List of token IDs to filter by (optional) + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List NFTs by account address + ListNFTsByOwnerResult result = apiInstance.ListNFTsByAccountAddress(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.ListNFTsByAccountAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListNFTsByAccountAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List NFTs by account address + ApiResponse response = apiInstance.ListNFTsByAccountAddressWithHttpInfo(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.ListNFTsByAccountAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **accountAddress** | **string** | Account address | | +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string?** | The address of contract | [optional] | +| **tokenId** | [**List<string>?**](string.md) | List of token IDs to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTsByOwnerResult**](ListNFTsByOwnerResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistContractStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistContractStatus.md new file mode 100644 index 00000000..00e1ecca --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistContractStatus.md @@ -0,0 +1,15 @@ +# Immutable.Api.Model.OperatorAllowlistContractStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of the contract | +**Status** | **OperatorAllowlistStatus** | | +**Details** | [**OperatorAllowlistStatusDetails**](OperatorAllowlistStatusDetails.md) | | +**CreatedAt** | **DateTime** | When the contract status was created | +**CreatedBy** | **string** | Who created the status | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistContractStatusInternal.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistContractStatusInternal.md new file mode 100644 index 00000000..04e1a65b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistContractStatusInternal.md @@ -0,0 +1,17 @@ +# Immutable.Api.Model.OperatorAllowlistContractStatusInternal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of the contract | +**Status** | **OperatorAllowlistStatus** | | +**Details** | [**OperatorAllowlistStatusDetails**](OperatorAllowlistStatusDetails.md) | | +**CreatedAt** | **DateTime** | When the contract status was created | +**CreatedBy** | **string** | Who created the status | +**OrgName** | **string** | The name of the organisation associated with this contract | +**OrgTier** | **OrganisationTier** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatus.md new file mode 100644 index 00000000..9105a335 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.OperatorAllowlistStatus +The status of a contract on the operator allowlist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatusDetails.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatusDetails.md new file mode 100644 index 00000000..0f2637f6 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatusDetails.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.OperatorAllowlistStatusDetails +The operator allowlist status details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Purpose** | **string** | Reason this contract needs to be added | +**IsSettlementContract** | **bool** | Attestation of whether this contract is a settlement contract | +**Reason** | **string** | Why this action was performed | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatusRequested.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatusRequested.md new file mode 100644 index 00000000..bdf7096f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatusRequested.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.OperatorAllowlistStatusRequested +The request details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Purpose** | **string** | Reason this contract needs to be added | +**IsSettlementContract** | **bool** | Attestation of whether this contract is a settlement contract | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatusUpdated.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatusUpdated.md new file mode 100644 index 00000000..d4fec8fe --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OperatorAllowlistStatusUpdated.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.OperatorAllowlistStatusUpdated +The update details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reason** | **string** | Why this action was performed | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Order.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Order.md new file mode 100644 index 00000000..a60a633d --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Order.md @@ -0,0 +1,26 @@ +# Immutable.Api.Model.Order + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | | +**Buy** | [**List<Item>**](Item.md) | | +**Fees** | [**List<Fee>**](Fee.md) | | +**Chain** | [**Chain**](Chain.md) | | +**CreatedAt** | **DateTime** | Time the Order is created | +**EndAt** | **DateTime** | Time after which the Order is considered expired | +**Id** | **string** | Global Order identifier | +**OrderHash** | **string** | | +**ProtocolData** | [**ProtocolData**](ProtocolData.md) | | +**Salt** | **string** | A random value added to the create Order request | +**Sell** | [**List<Item>**](Item.md) | | +**Signature** | **string** | Digital signature generated by the user for the specific Order | +**StartAt** | **DateTime** | Time after which Order is considered active | +**Status** | [**OrderStatus**](OrderStatus.md) | | +**Type** | **string** | Order type | +**UpdatedAt** | **DateTime** | Time the Order is last updated | +**FillStatus** | [**FillStatus**](FillStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrderStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrderStatus.md new file mode 100644 index 00000000..3710c6a4 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrderStatus.md @@ -0,0 +1,17 @@ +# Immutable.Api.Model.OrderStatus +The Order status + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | A terminal order status indicating that an order cannot be fulfilled due to expiry. | +**Pending** | **bool** | Whether the cancellation of the order is pending | +**CancellationType** | **string** | Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account | +**Evaluated** | **bool** | Whether the order has been evaluated after its creation | +**Started** | **bool** | Whether the order has reached its specified start time | +**SufficientApprovals** | **bool** | Whether the order offerer has sufficient approvals | +**SufficientBalances** | **bool** | Whether the order offerer still has sufficient balance to complete the order | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrderStatusName.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrderStatusName.md new file mode 100644 index 00000000..7e900f44 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrderStatusName.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.OrderStatusName +The Order status + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrdersApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrdersApi.md new file mode 100644 index 00000000..21181978 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrdersApi.md @@ -0,0 +1,1343 @@ +# Immutable.Api.Api.OrdersApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CancelOrders**](OrdersApi.md#cancelorders) | **POST** /v1/chains/{chain_name}/orders/cancel | Cancel one or more orders | +| [**CreateBid**](OrdersApi.md#createbid) | **POST** /v1/chains/{chain_name}/orders/bids | Create a bid | +| [**CreateCollectionBid**](OrdersApi.md#createcollectionbid) | **POST** /v1/chains/{chain_name}/orders/collection-bids | Create a collection bid | +| [**CreateListing**](OrdersApi.md#createlisting) | **POST** /v1/chains/{chain_name}/orders/listings | Create a listing | +| [**FulfillmentData**](OrdersApi.md#fulfillmentdata) | **POST** /v1/chains/{chain_name}/orders/fulfillment-data | Retrieve fulfillment data for orders | +| [**GetBid**](OrdersApi.md#getbid) | **GET** /v1/chains/{chain_name}/orders/bids/{bid_id} | Get a single bid by ID | +| [**GetCollectionBid**](OrdersApi.md#getcollectionbid) | **GET** /v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id} | Get a single collection bid by ID | +| [**GetListing**](OrdersApi.md#getlisting) | **GET** /v1/chains/{chain_name}/orders/listings/{listing_id} | Get a single listing by ID | +| [**GetTrade**](OrdersApi.md#gettrade) | **GET** /v1/chains/{chain_name}/trades/{trade_id} | Get a single trade by ID | +| [**ListBids**](OrdersApi.md#listbids) | **GET** /v1/chains/{chain_name}/orders/bids | List all bids | +| [**ListCollectionBids**](OrdersApi.md#listcollectionbids) | **GET** /v1/chains/{chain_name}/orders/collection-bids | List all collection bids | +| [**ListListings**](OrdersApi.md#listlistings) | **GET** /v1/chains/{chain_name}/orders/listings | List all listings | +| [**ListTrades**](OrdersApi.md#listtrades) | **GET** /v1/chains/{chain_name}/trades | List all trades | + + +# **CancelOrders** +> CancelOrdersResult CancelOrders (string chainName, CancelOrdersRequestBody cancelOrdersRequestBody) + +Cancel one or more orders + +Cancel one or more orders + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class CancelOrdersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var cancelOrdersRequestBody = new CancelOrdersRequestBody(); // CancelOrdersRequestBody | + + try + { + // Cancel one or more orders + CancelOrdersResult result = apiInstance.CancelOrders(chainName, cancelOrdersRequestBody); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.CancelOrders: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CancelOrdersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Cancel one or more orders + ApiResponse response = apiInstance.CancelOrdersWithHttpInfo(chainName, cancelOrdersRequestBody); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.CancelOrdersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **cancelOrdersRequestBody** | [**CancelOrdersRequestBody**](CancelOrdersRequestBody.md) | | | + +### Return type + +[**CancelOrdersResult**](CancelOrdersResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Orders cancellation response. | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | +| **501** | Not Implemented Error (501) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateBid** +> BidResult CreateBid (string chainName, CreateBidRequestBody createBidRequestBody) + +Create a bid + +Create a bid + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class CreateBidExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var createBidRequestBody = new CreateBidRequestBody(); // CreateBidRequestBody | + + try + { + // Create a bid + BidResult result = apiInstance.CreateBid(chainName, createBidRequestBody); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.CreateBid: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateBidWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a bid + ApiResponse response = apiInstance.CreateBidWithHttpInfo(chainName, createBidRequestBody); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.CreateBidWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **createBidRequestBody** | [**CreateBidRequestBody**](CreateBidRequestBody.md) | | | + +### Return type + +[**BidResult**](BidResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | +| **501** | Not Implemented Error (501) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateCollectionBid** +> CollectionBidResult CreateCollectionBid (string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody) + +Create a collection bid + +Create a collection bid + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class CreateCollectionBidExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var createCollectionBidRequestBody = new CreateCollectionBidRequestBody(); // CreateCollectionBidRequestBody | + + try + { + // Create a collection bid + CollectionBidResult result = apiInstance.CreateCollectionBid(chainName, createCollectionBidRequestBody); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.CreateCollectionBid: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateCollectionBidWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a collection bid + ApiResponse response = apiInstance.CreateCollectionBidWithHttpInfo(chainName, createCollectionBidRequestBody); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.CreateCollectionBidWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **createCollectionBidRequestBody** | [**CreateCollectionBidRequestBody**](CreateCollectionBidRequestBody.md) | | | + +### Return type + +[**CollectionBidResult**](CollectionBidResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | +| **501** | Not Implemented Error (501) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateListing** +> ListingResult CreateListing (string chainName, CreateListingRequestBody createListingRequestBody) + +Create a listing + +Create a listing + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class CreateListingExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var createListingRequestBody = new CreateListingRequestBody(); // CreateListingRequestBody | + + try + { + // Create a listing + ListingResult result = apiInstance.CreateListing(chainName, createListingRequestBody); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.CreateListing: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateListingWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a listing + ApiResponse response = apiInstance.CreateListingWithHttpInfo(chainName, createListingRequestBody); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.CreateListingWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **createListingRequestBody** | [**CreateListingRequestBody**](CreateListingRequestBody.md) | | | + +### Return type + +[**ListingResult**](ListingResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **FulfillmentData** +> FulfillmentData200Response FulfillmentData (string chainName, List fulfillmentDataRequest) + +Retrieve fulfillment data for orders + +Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class FulfillmentDataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var fulfillmentDataRequest = new List(); // List | + + try + { + // Retrieve fulfillment data for orders + FulfillmentData200Response result = apiInstance.FulfillmentData(chainName, fulfillmentDataRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.FulfillmentData: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the FulfillmentDataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Retrieve fulfillment data for orders + ApiResponse response = apiInstance.FulfillmentDataWithHttpInfo(chainName, fulfillmentDataRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.FulfillmentDataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **fulfillmentDataRequest** | [**List<FulfillmentDataRequest>**](FulfillmentDataRequest.md) | | | + +### Return type + +[**FulfillmentData200Response**](FulfillmentData200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBid** +> BidResult GetBid (string chainName, Guid bidId) + +Get a single bid by ID + +Get a single bid by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetBidExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var bidId = 018792c9-4ad7-8ec4-4038-9e05c598534a; // Guid | Global Bid identifier + + try + { + // Get a single bid by ID + BidResult result = apiInstance.GetBid(chainName, bidId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.GetBid: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetBidWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single bid by ID + ApiResponse response = apiInstance.GetBidWithHttpInfo(chainName, bidId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.GetBidWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **bidId** | **Guid** | Global Bid identifier | | + +### Return type + +[**BidResult**](BidResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCollectionBid** +> CollectionBidResult GetCollectionBid (string chainName, Guid collectionBidId) + +Get a single collection bid by ID + +Get a single collection bid by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetCollectionBidExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var collectionBidId = 018792c9-4ad7-8ec4-4038-9e05c598534a; // Guid | Global Collection Bid identifier + + try + { + // Get a single collection bid by ID + CollectionBidResult result = apiInstance.GetCollectionBid(chainName, collectionBidId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.GetCollectionBid: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetCollectionBidWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single collection bid by ID + ApiResponse response = apiInstance.GetCollectionBidWithHttpInfo(chainName, collectionBidId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.GetCollectionBidWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **collectionBidId** | **Guid** | Global Collection Bid identifier | | + +### Return type + +[**CollectionBidResult**](CollectionBidResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetListing** +> ListingResult GetListing (string chainName, Guid listingId) + +Get a single listing by ID + +Get a single listing by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetListingExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var listingId = 018792c9-4ad7-8ec4-4038-9e05c598534a; // Guid | Global Order identifier + + try + { + // Get a single listing by ID + ListingResult result = apiInstance.GetListing(chainName, listingId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.GetListing: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetListingWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single listing by ID + ApiResponse response = apiInstance.GetListingWithHttpInfo(chainName, listingId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.GetListingWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **listingId** | **Guid** | Global Order identifier | | + +### Return type + +[**ListingResult**](ListingResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetTrade** +> TradeResult GetTrade (string chainName, Guid tradeId) + +Get a single trade by ID + +Get a single trade by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetTradeExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var tradeId = 018792c9-4ad7-8ec4-4038-9e05c598534a; // Guid | Global Trade identifier + + try + { + // Get a single trade by ID + TradeResult result = apiInstance.GetTrade(chainName, tradeId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.GetTrade: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTradeWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single trade by ID + ApiResponse response = apiInstance.GetTradeWithHttpInfo(chainName, tradeId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.GetTradeWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **tradeId** | **Guid** | Global Trade identifier | | + +### Return type + +[**TradeResult**](TradeResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListBids** +> ListBidsResult ListBids (string chainName, OrderStatusName? status = null, string? buyItemContractAddress = null, string? sellItemContractAddress = null, string? accountAddress = null, Guid? buyItemMetadataId = null, string? buyItemTokenId = null, DateTime? fromUpdatedAt = null, int? pageSize = null, string? sortBy = null, string? sortDirection = null, string? pageCursor = null) + +List all bids + +List all bids + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListBidsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var status = new OrderStatusName?(); // OrderStatusName? | Order status to filter by (optional) + var buyItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Buy item contract address to filter by (optional) + var sellItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Sell item contract address to filter by (optional) + var accountAddress = 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | The account address of the user who created the bid (optional) + var buyItemMetadataId = 020792c9-4ad7-8ec4-4038-9e05c598535b; // Guid? | The metadata_id of the buy item (optional) + var buyItemTokenId = 1; // string? | buy item token identifier to filter by (optional) + var fromUpdatedAt = 2022-03-09T05:00:50.520Z; // DateTime? | From updated at including given date (optional) + var pageSize = 100; // int? | Maximum number of orders to return per page (optional) (default to 100) + var sortBy = created_at; // string? | Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + var sortDirection = asc; // string? | Ascending or descending direction for sort (optional) + var pageCursor = "pageCursor_example"; // string? | Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // List all bids + ListBidsResult result = apiInstance.ListBids(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, buyItemMetadataId, buyItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.ListBids: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListBidsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all bids + ApiResponse response = apiInstance.ListBidsWithHttpInfo(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, buyItemMetadataId, buyItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.ListBidsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **status** | [**OrderStatusName?**](OrderStatusName?.md) | Order status to filter by | [optional] | +| **buyItemContractAddress** | **string?** | Buy item contract address to filter by | [optional] | +| **sellItemContractAddress** | **string?** | Sell item contract address to filter by | [optional] | +| **accountAddress** | **string?** | The account address of the user who created the bid | [optional] | +| **buyItemMetadataId** | **Guid?** | The metadata_id of the buy item | [optional] | +| **buyItemTokenId** | **string?** | buy item token identifier to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | From updated at including given date | [optional] | +| **pageSize** | **int?** | Maximum number of orders to return per page | [optional] [default to 100] | +| **sortBy** | **string?** | Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. | [optional] | +| **sortDirection** | **string?** | Ascending or descending direction for sort | [optional] | +| **pageCursor** | **string?** | Page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**ListBidsResult**](ListBidsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListCollectionBids** +> ListCollectionBidsResult ListCollectionBids (string chainName, OrderStatusName? status = null, string? buyItemContractAddress = null, string? sellItemContractAddress = null, string? accountAddress = null, DateTime? fromUpdatedAt = null, int? pageSize = null, string? sortBy = null, string? sortDirection = null, string? pageCursor = null) + +List all collection bids + +List all collection bids + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListCollectionBidsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var status = new OrderStatusName?(); // OrderStatusName? | Order status to filter by (optional) + var buyItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Buy item contract address to filter by (optional) + var sellItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Sell item contract address to filter by (optional) + var accountAddress = 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | The account address of the user who created the bid (optional) + var fromUpdatedAt = 2022-03-09T05:00:50.520Z; // DateTime? | From updated at including given date (optional) + var pageSize = 100; // int? | Maximum number of orders to return per page (optional) (default to 100) + var sortBy = created_at; // string? | Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + var sortDirection = asc; // string? | Ascending or descending direction for sort (optional) + var pageCursor = "pageCursor_example"; // string? | Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // List all collection bids + ListCollectionBidsResult result = apiInstance.ListCollectionBids(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.ListCollectionBids: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListCollectionBidsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all collection bids + ApiResponse response = apiInstance.ListCollectionBidsWithHttpInfo(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.ListCollectionBidsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **status** | [**OrderStatusName?**](OrderStatusName?.md) | Order status to filter by | [optional] | +| **buyItemContractAddress** | **string?** | Buy item contract address to filter by | [optional] | +| **sellItemContractAddress** | **string?** | Sell item contract address to filter by | [optional] | +| **accountAddress** | **string?** | The account address of the user who created the bid | [optional] | +| **fromUpdatedAt** | **DateTime?** | From updated at including given date | [optional] | +| **pageSize** | **int?** | Maximum number of orders to return per page | [optional] [default to 100] | +| **sortBy** | **string?** | Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. | [optional] | +| **sortDirection** | **string?** | Ascending or descending direction for sort | [optional] | +| **pageCursor** | **string?** | Page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**ListCollectionBidsResult**](ListCollectionBidsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListListings** +> ListListingsResult ListListings (string chainName, OrderStatusName? status = null, string? sellItemContractAddress = null, string? buyItemType = null, string? buyItemContractAddress = null, string? accountAddress = null, Guid? sellItemMetadataId = null, string? sellItemTokenId = null, DateTime? fromUpdatedAt = null, int? pageSize = null, string? sortBy = null, string? sortDirection = null, string? pageCursor = null) + +List all listings + +List all listings + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListListingsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var status = new OrderStatusName?(); // OrderStatusName? | Order status to filter by (optional) + var sellItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Sell item contract address to filter by (optional) + var buyItemType = NATIVE; // string? | Buy item type to filter by (optional) + var buyItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Buy item contract address to filter by (optional) + var accountAddress = 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | The account address of the user who created the listing (optional) + var sellItemMetadataId = 020792c9-4ad7-8ec4-4038-9e05c598535b; // Guid? | The metadata_id of the sell item (optional) + var sellItemTokenId = 1; // string? | Sell item token identifier to filter by (optional) + var fromUpdatedAt = 2022-03-09T05:00:50.520Z; // DateTime? | From updated at including given date (optional) + var pageSize = 100; // int? | Maximum number of orders to return per page (optional) (default to 100) + var sortBy = created_at; // string? | Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + var sortDirection = asc; // string? | Ascending or descending direction for sort (optional) + var pageCursor = "pageCursor_example"; // string? | Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // List all listings + ListListingsResult result = apiInstance.ListListings(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.ListListings: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListListingsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all listings + ApiResponse response = apiInstance.ListListingsWithHttpInfo(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.ListListingsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **status** | [**OrderStatusName?**](OrderStatusName?.md) | Order status to filter by | [optional] | +| **sellItemContractAddress** | **string?** | Sell item contract address to filter by | [optional] | +| **buyItemType** | **string?** | Buy item type to filter by | [optional] | +| **buyItemContractAddress** | **string?** | Buy item contract address to filter by | [optional] | +| **accountAddress** | **string?** | The account address of the user who created the listing | [optional] | +| **sellItemMetadataId** | **Guid?** | The metadata_id of the sell item | [optional] | +| **sellItemTokenId** | **string?** | Sell item token identifier to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | From updated at including given date | [optional] | +| **pageSize** | **int?** | Maximum number of orders to return per page | [optional] [default to 100] | +| **sortBy** | **string?** | Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. | [optional] | +| **sortDirection** | **string?** | Ascending or descending direction for sort | [optional] | +| **pageCursor** | **string?** | Page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**ListListingsResult**](ListListingsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListTrades** +> ListTradeResult ListTrades (string chainName, string? accountAddress = null, string? sellItemContractAddress = null, DateTime? fromIndexedAt = null, int? pageSize = null, string? sortBy = null, string? sortDirection = null, string? pageCursor = null) + +List all trades + +List all trades + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListTradesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var accountAddress = 0x784578949A4A50DeA641Fb15dd2B11C72E76919a; // string? | (optional) + var sellItemContractAddress = 0x784578949A4A50DeA641Fb15dd2B11C72E76919a; // string? | (optional) + var fromIndexedAt = 2022-03-09T05:00:50.520Z; // DateTime? | From indexed at including given date (optional) + var pageSize = 100; // int? | Maximum number of trades to return per page (optional) (default to 100) + var sortBy = indexed_at; // string? | Trade field to sort by (optional) + var sortDirection = asc; // string? | Ascending or descending direction for sort (optional) + var pageCursor = "pageCursor_example"; // string? | Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // List all trades + ListTradeResult result = apiInstance.ListTrades(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.ListTrades: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListTradesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all trades + ApiResponse response = apiInstance.ListTradesWithHttpInfo(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.ListTradesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **accountAddress** | **string?** | | [optional] | +| **sellItemContractAddress** | **string?** | | [optional] | +| **fromIndexedAt** | **DateTime?** | From indexed at including given date | [optional] | +| **pageSize** | **int?** | Maximum number of trades to return per page | [optional] [default to 100] | +| **sortBy** | **string?** | Trade field to sort by | [optional] | +| **sortDirection** | **string?** | Ascending or descending direction for sort | [optional] | +| **pageCursor** | **string?** | Page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**ListTradeResult**](ListTradeResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrganisationTier.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrganisationTier.md new file mode 100644 index 00000000..e56ab6e8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/OrganisationTier.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.OrganisationTier +The tier of the organisation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/Page.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Page.md similarity index 93% rename from Assets/Shared/Scripts/Data/API/Search/docs/Page.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Page.md index d2a021b5..191b8229 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/Page.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Page.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.Page +# Immutable.Api.Model.Page Pagination properties ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PassportApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PassportApi.md new file mode 100644 index 00000000..7e43910e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PassportApi.md @@ -0,0 +1,110 @@ +# Immutable.Api.Api.PassportApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetLinkedAddresses**](PassportApi.md#getlinkedaddresses) | **GET** /v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses | Get Ethereum linked addresses for a user | + + +# **GetLinkedAddresses** +> GetLinkedAddressesRes GetLinkedAddresses (string userId, string chainName) + +Get Ethereum linked addresses for a user + +This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetLinkedAddressesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure Bearer token for authorization: BearerAuth + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new PassportApi(config); + var userId = "userId_example"; // string | The user's userId + var chainName = "chainName_example"; // string | + + try + { + // Get Ethereum linked addresses for a user + GetLinkedAddressesRes result = apiInstance.GetLinkedAddresses(userId, chainName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PassportApi.GetLinkedAddresses: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetLinkedAddressesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get Ethereum linked addresses for a user + ApiResponse response = apiInstance.GetLinkedAddressesWithHttpInfo(userId, chainName); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PassportApi.GetLinkedAddressesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **userId** | **string** | The user's userId | | +| **chainName** | **string** | | | + +### Return type + +[**GetLinkedAddressesRes**](GetLinkedAddressesRes.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | User's list of linked addresses response | - | +| **400** | BadRequestError | - | +| **401** | UnauthorizedError | - | +| **403** | ForbiddenError | - | +| **429** | TooManyRequestsError | - | +| **500** | InternalServerError | - | +| **0** | unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PassportProfileApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PassportProfileApi.md new file mode 100644 index 00000000..4b8f16c4 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PassportProfileApi.md @@ -0,0 +1,199 @@ +# Immutable.Api.Api.PassportProfileApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetUserInfo**](PassportProfileApi.md#getuserinfo) | **GET** /passport-profile/v1/user/info | Get all info for a Passport user | +| [**LinkWalletV2**](PassportProfileApi.md#linkwalletv2) | **POST** /passport-profile/v2/linked-wallets | Link wallet v2 | + + +# **GetUserInfo** +> UserInfo GetUserInfo () + +Get all info for a Passport user + +Get all the info for an authenticated Passport user + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetUserInfoExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure Bearer token for authorization: BearerAuth + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new PassportProfileApi(config); + + try + { + // Get all info for a Passport user + UserInfo result = apiInstance.GetUserInfo(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PassportProfileApi.GetUserInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetUserInfoWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all info for a Passport user + ApiResponse response = apiInstance.GetUserInfoWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PassportProfileApi.GetUserInfoWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**UserInfo**](UserInfo.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Passport user's info | - | +| **401** | UnauthorizedError | - | +| **500** | InternalServerError | - | +| **0** | unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **LinkWalletV2** +> Wallet LinkWalletV2 (LinkWalletV2Request? linkWalletV2Request = null) + +Link wallet v2 + +Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class LinkWalletV2Example + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure Bearer token for authorization: BearerAuth + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new PassportProfileApi(config); + var linkWalletV2Request = new LinkWalletV2Request?(); // LinkWalletV2Request? | (optional) + + try + { + // Link wallet v2 + Wallet result = apiInstance.LinkWalletV2(linkWalletV2Request); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PassportProfileApi.LinkWalletV2: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the LinkWalletV2WithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Link wallet v2 + ApiResponse response = apiInstance.LinkWalletV2WithHttpInfo(linkWalletV2Request); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PassportProfileApi.LinkWalletV2WithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **linkWalletV2Request** | [**LinkWalletV2Request?**](LinkWalletV2Request?.md) | | [optional] | + +### Return type + +[**Wallet**](Wallet.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | BadRequestError | - | +| **401** | UnauthorizedError | - | +| **403** | ForbiddenError | - | +| **500** | InternalServerError | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/PaymentAmount.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PaymentAmount.md similarity index 92% rename from Assets/Shared/Scripts/Data/API/Search/docs/PaymentAmount.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PaymentAmount.md index b2bb8448..69791a23 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/PaymentAmount.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PaymentAmount.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.PaymentAmount +# Immutable.Api.Model.PaymentAmount Amount details ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PendingOrderStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PendingOrderStatus.md new file mode 100644 index 00000000..0506bd95 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PendingOrderStatus.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.PendingOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The order status that indicates the order is yet to be active due to various reasons. | +**Evaluated** | **bool** | Whether the order has been evaluated after its creation | +**Started** | **bool** | Whether the order has reached its specified start time | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PricingApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PricingApi.md new file mode 100644 index 00000000..187b0bdd --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/PricingApi.md @@ -0,0 +1,215 @@ +# Immutable.Api.Api.PricingApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**QuotesForNFTs**](PricingApi.md#quotesfornfts) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/nfts | Experimental: Get pricing data for a list of token ids | +| [**QuotesForStacks**](PricingApi.md#quotesforstacks) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/stacks | Experimental: Get pricing data for a list of stack ids | + + +# **QuotesForNFTs** +> QuotesForNFTsResult QuotesForNFTs (string chainName, string contractAddress, List tokenId, string? pageCursor = null) + +Experimental: Get pricing data for a list of token ids + +![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class QuotesForNFTsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new PricingApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = "contractAddress_example"; // string | Contract address for collection that these token ids are on + var tokenId = new List(); // List | List of token ids to get pricing data for + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // Experimental: Get pricing data for a list of token ids + QuotesForNFTsResult result = apiInstance.QuotesForNFTs(chainName, contractAddress, tokenId, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PricingApi.QuotesForNFTs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the QuotesForNFTsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Experimental: Get pricing data for a list of token ids + ApiResponse response = apiInstance.QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PricingApi.QuotesForNFTsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | Contract address for collection that these token ids are on | | +| **tokenId** | [**List<string>**](string.md) | List of token ids to get pricing data for | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**QuotesForNFTsResult**](QuotesForNFTsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **QuotesForStacks** +> QuotesForStacksResult QuotesForStacks (string chainName, string contractAddress, List stackId, string? pageCursor = null) + +Experimental: Get pricing data for a list of stack ids + +![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class QuotesForStacksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new PricingApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = "contractAddress_example"; // string | Contract address for collection that these stacks are on + var stackId = new List(); // List | List of stack ids to get pricing data for + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // Experimental: Get pricing data for a list of stack ids + QuotesForStacksResult result = apiInstance.QuotesForStacks(chainName, contractAddress, stackId, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PricingApi.QuotesForStacks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the QuotesForStacksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Experimental: Get pricing data for a list of stack ids + ApiResponse response = apiInstance.QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PricingApi.QuotesForStacksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | Contract address for collection that these stacks are on | | +| **stackId** | [**List<Guid>**](Guid.md) | List of stack ids to get pricing data for | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**QuotesForStacksResult**](QuotesForStacksResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ProtocolData.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ProtocolData.md new file mode 100644 index 00000000..1c666180 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/ProtocolData.md @@ -0,0 +1,14 @@ +# Immutable.Api.Model.ProtocolData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderType** | **string** | Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED | +**Counter** | **string** | big.Int or uint256 string for order counter | +**ZoneAddress** | **string** | Immutable zone address | +**SeaportAddress** | **string** | Immutable Seaport contract address | +**SeaportVersion** | **string** | Immutable Seaport contract version | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/QuotesForNFTsResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/QuotesForNFTsResult.md similarity index 90% rename from Assets/Shared/Scripts/Data/API/Search/docs/QuotesForNFTsResult.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/QuotesForNFTsResult.md index 7fc198e5..6a75d9e3 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/QuotesForNFTsResult.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/QuotesForNFTsResult.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.QuotesForNFTsResult +# Immutable.Api.Model.QuotesForNFTsResult Quotes for NFTs result ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/QuotesForStacksResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/QuotesForStacksResult.md similarity index 90% rename from Assets/Shared/Scripts/Data/API/Search/docs/QuotesForStacksResult.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/QuotesForStacksResult.md index bab4421b..2730f07e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/QuotesForStacksResult.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/QuotesForStacksResult.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.QuotesForStacksResult +# Immutable.Api.Model.QuotesForStacksResult Quotes for stacks result ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshCollectionMetadataRequest.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshCollectionMetadataRequest.md new file mode 100644 index 00000000..9ac88f65 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshCollectionMetadataRequest.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.RefreshCollectionMetadataRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionMetadata** | [**CollectionMetadata**](CollectionMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshCollectionMetadataResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshCollectionMetadataResult.md new file mode 100644 index 00000000..4638c176 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshCollectionMetadataResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.RefreshCollectionMetadataResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractAddress** | **string** | | +**Chain** | [**Chain**](Chain.md) | | +**CollectionMetadata** | [**CollectionMetadata**](CollectionMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshMetadataByID.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshMetadataByID.md new file mode 100644 index 00000000..687679cf --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshMetadataByID.md @@ -0,0 +1,17 @@ +# Immutable.Api.Model.RefreshMetadataByID + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external link of the NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube link of the NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | +**MetadataId** | **Guid** | Metadata id in UUIDv4 format | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshMetadataByIDRequest.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshMetadataByIDRequest.md new file mode 100644 index 00000000..74bdac58 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshMetadataByIDRequest.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.RefreshMetadataByIDRequest +Request body for refreshing metadata by id. Total size of this list should not exceed 228 KiB + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | [**List<RefreshMetadataByID>**](RefreshMetadataByID.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshMetadataByTokenID.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshMetadataByTokenID.md new file mode 100644 index 00000000..cca7e1f8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshMetadataByTokenID.md @@ -0,0 +1,17 @@ +# Immutable.Api.Model.RefreshMetadataByTokenID + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external link of the NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube link of the NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | +**TokenId** | **string** | An `uint256` token id as string | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshNFTMetadataByTokenIDRequest.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshNFTMetadataByTokenIDRequest.md new file mode 100644 index 00000000..67a9ef12 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshNFTMetadataByTokenIDRequest.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.RefreshNFTMetadataByTokenIDRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NftMetadata** | [**List<RefreshMetadataByTokenID>**](RefreshMetadataByTokenID.md) | List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshableNFTAttributes.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshableNFTAttributes.md new file mode 100644 index 00000000..463cc473 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/RefreshableNFTAttributes.md @@ -0,0 +1,16 @@ +# Immutable.Api.Model.RefreshableNFTAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external link of the NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube link of the NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SaleFee.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SaleFee.md new file mode 100644 index 00000000..0db14d72 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SaleFee.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.SaleFee + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **string** | Fee payable to recipient upon settlement | [optional] +**Type** | **string** | Fee type | [optional] +**Recipient** | **string** | Wallet address of fee recipient | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SalePayment.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SalePayment.md new file mode 100644 index 00000000..1e0f62d2 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SalePayment.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.SalePayment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | [**SalePaymentToken**](SalePaymentToken.md) | | +**PriceExcludingFees** | **string** | The base price of the sale not including any fees | +**PriceIncludingFees** | **string** | The total price of the sale. Includes the sum of all fees | +**Fees** | [**List<SaleFee>**](SaleFee.md) | The fees associated with this sale | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SalePaymentToken.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SalePaymentToken.md new file mode 100644 index 00000000..2881b917 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SalePaymentToken.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.SalePaymentToken +The type of payment token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractType** | **TokenContractType** | | +**ContractAddress** | **string** | The contract address | +**Symbol** | **string** | The token symbol | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SearchNFTsResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SearchNFTsResult.md new file mode 100644 index 00000000..d6ed0fdc --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SearchNFTsResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.SearchNFTsResult +Search NFTs result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFTBundle>**](NFTBundle.md) | List of nft bundles | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/SearchStacksResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SearchStacksResult.md similarity index 90% rename from Assets/Shared/Scripts/Data/API/Search/docs/SearchStacksResult.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SearchStacksResult.md index 9d2459b5..fe536a5f 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/SearchStacksResult.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SearchStacksResult.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.SearchStacksResult +# Immutable.Api.Model.SearchStacksResult Search stacks result ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SignCraftingRequest.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SignCraftingRequest.md new file mode 100644 index 00000000..eb7542fb --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SignCraftingRequest.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.SignCraftingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MultiCaller** | [**SignCraftingRequestMultiCaller**](SignCraftingRequestMultiCaller.md) | | +**ReferenceId** | **string** | The id of this request in the system that originates the crafting request, specified as a 32 byte hex string | +**Calls** | [**List<Call>**](Call.md) | The calls to be signed | +**ExpiresAt** | **DateTime** | The expiration time of the request | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SignCraftingRequestMultiCaller.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SignCraftingRequestMultiCaller.md new file mode 100644 index 00000000..65092123 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SignCraftingRequestMultiCaller.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.SignCraftingRequestMultiCaller + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | An Ethereum address | +**Name** | **string** | The name of the multicaller contract | +**VarVersion** | **string** | The version of the multicaller contract | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SignCraftingResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SignCraftingResult.md new file mode 100644 index 00000000..0bbe8ba7 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/SignCraftingResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.Model.SignCraftingResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignerAddress** | **string** | An Ethereum address | +**Signature** | **string** | The signature of the request | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/Stack.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Stack.md similarity index 92% rename from Assets/Shared/Scripts/Data/API/Search/docs/Stack.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Stack.md index 3ffa6017..dad2ba0e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/Stack.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Stack.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.Stack +# Immutable.Api.Model.Stack Stack ## Properties @@ -8,6 +8,7 @@ Name | Type | Description | Notes **StackId** | **Guid** | Stack ID | **Chain** | [**Chain**](Chain.md) | | **ContractAddress** | **string** | Contract address | +**ContractType** | **string** | The contract type | **CreatedAt** | **DateTime** | When the metadata was created | **UpdatedAt** | **DateTime** | When the metadata was last updated | **Name** | **string** | The name of the NFT | diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/StackBundle.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/StackBundle.md similarity index 94% rename from Assets/Shared/Scripts/Data/API/Search/docs/StackBundle.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/StackBundle.md index 3bedcc48..12c983ef 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/StackBundle.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/StackBundle.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.StackBundle +# Immutable.Api.Model.StackBundle Stack bundle includes stacks, markets and listings ## Properties diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/StackQuoteResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/StackQuoteResult.md similarity index 91% rename from Assets/Shared/Scripts/Data/API/Search/docs/StackQuoteResult.md rename to Assets/Shared/Scripts/Data/API/ImmutableApi/docs/StackQuoteResult.md index 268ed81c..32b0c196 100644 --- a/Assets/Shared/Scripts/Data/API/Search/docs/StackQuoteResult.md +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/StackQuoteResult.md @@ -1,4 +1,4 @@ -# Immutable.Search.Model.StackQuoteResult +# Immutable.Api.Model.StackQuoteResult Stack quote result ## Properties diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/StacksApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/StacksApi.md new file mode 100644 index 00000000..334e2dcf --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/StacksApi.md @@ -0,0 +1,233 @@ +# Immutable.Api.Api.StacksApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**SearchNFTs**](StacksApi.md#searchnfts) | **GET** /experimental/chains/{chain_name}/search/nfts | Experimental: Search NFTs | +| [**SearchStacks**](StacksApi.md#searchstacks) | **GET** /experimental/chains/{chain_name}/search/stacks | Experimental: Search NFT stacks | + + +# **SearchNFTs** +> SearchNFTsResult SearchNFTs (string chainName, List contractAddress, string? accountAddress = null, List? stackId = null, bool? onlyIncludeOwnerListings = null, int? pageSize = null, string? pageCursor = null) + +Experimental: Search NFTs + +![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class SearchNFTsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new StacksApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = new List(); // List | List of contract addresses to filter by + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string? | Account address to filter by (optional) + var stackId = new List?(); // List? | Filters NFTs that belong to any of these stacks (optional) + var onlyIncludeOwnerListings = true; // bool? | Whether the listings should include only the owner created listings (optional) + var pageSize = 100; // int? | Number of results to return per page (optional) (default to 100) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // Experimental: Search NFTs + SearchNFTsResult result = apiInstance.SearchNFTs(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling StacksApi.SearchNFTs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SearchNFTsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Experimental: Search NFTs + ApiResponse response = apiInstance.SearchNFTsWithHttpInfo(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling StacksApi.SearchNFTsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | [**List<string>**](string.md) | List of contract addresses to filter by | | +| **accountAddress** | **string?** | Account address to filter by | [optional] | +| **stackId** | [**List<Guid>?**](Guid.md) | Filters NFTs that belong to any of these stacks | [optional] | +| **onlyIncludeOwnerListings** | **bool?** | Whether the listings should include only the owner created listings | [optional] | +| **pageSize** | **int?** | Number of results to return per page | [optional] [default to 100] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**SearchNFTsResult**](SearchNFTsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchStacks** +> SearchStacksResult SearchStacks (string chainName, List contractAddress, string? accountAddress = null, bool? onlyIncludeOwnerListings = null, bool? onlyIfHasActiveListings = null, string? trait = null, string? keyword = null, string? sortBy = null, int? pageSize = null, string? pageCursor = null) + +Experimental: Search NFT stacks + +![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class SearchStacksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new StacksApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = new List(); // List | List of contract addresses to filter by + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string? | Account address to filter by (optional) + var onlyIncludeOwnerListings = true; // bool? | Whether to the listings should include only the owner created listings (optional) + var onlyIfHasActiveListings = true; // bool? | Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + var trait = "trait_example"; // string? | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + var keyword = sword; // string? | Keyword to search NFT name and description. Alphanumeric characters only. (optional) + var sortBy = "cheapest_first"; // string? | Sort results in a specific order (optional) + var pageSize = 100; // int? | Number of results to return per page (optional) (default to 100) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // Experimental: Search NFT stacks + SearchStacksResult result = apiInstance.SearchStacks(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling StacksApi.SearchStacks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SearchStacksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Experimental: Search NFT stacks + ApiResponse response = apiInstance.SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling StacksApi.SearchStacksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | [**List<string>**](string.md) | List of contract addresses to filter by | | +| **accountAddress** | **string?** | Account address to filter by | [optional] | +| **onlyIncludeOwnerListings** | **bool?** | Whether to the listings should include only the owner created listings | [optional] | +| **onlyIfHasActiveListings** | **bool?** | Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. | [optional] | +| **trait** | **string?** | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) | [optional] | +| **keyword** | **string?** | Keyword to search NFT name and description. Alphanumeric characters only. | [optional] | +| **sortBy** | **string?** | Sort results in a specific order | [optional] | +| **pageSize** | **int?** | Number of results to return per page | [optional] [default to 100] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**SearchStacksResult**](SearchStacksResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Token.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Token.md new file mode 100644 index 00000000..c330cca8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Token.md @@ -0,0 +1,21 @@ +# Immutable.Api.Model.Token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of token contract | +**RootContractAddress** | **string** | The address of root token contract | +**RootChainId** | **string** | The id of the root chain for a bridged token | [optional] +**BridgeUsed** | **string** | The name of the bridge, for bridged tokens only | [optional] +**Symbol** | **string** | The symbol of token | +**Decimals** | **int?** | The decimals of token | +**ImageUrl** | **string** | The image url of token | +**Name** | **string** | The name of token | +**VerificationStatus** | **AssetVerificationStatus** | | +**UpdatedAt** | **DateTime** | When the collection was last updated | +**IsCanonical** | **bool** | Indicates whether the token is canonical or not | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TokenContractType.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TokenContractType.md new file mode 100644 index 00000000..5967bd1e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TokenContractType.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.TokenContractType +The contract type for a token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TokensApi.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TokensApi.md new file mode 100644 index 00000000..7b185214 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TokensApi.md @@ -0,0 +1,209 @@ +# Immutable.Api.Api.TokensApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetERC20Token**](TokensApi.md#geterc20token) | **GET** /v1/chains/{chain_name}/tokens/{contract_address} | Get single ERC20 token | +| [**ListERC20Tokens**](TokensApi.md#listerc20tokens) | **GET** /v1/chains/{chain_name}/tokens | List ERC20 tokens | + + +# **GetERC20Token** +> GetTokenResult GetERC20Token (string contractAddress, string chainName) + +Get single ERC20 token + +Get single ERC20 token + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class GetERC20TokenExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new TokensApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + + try + { + // Get single ERC20 token + GetTokenResult result = apiInstance.GetERC20Token(contractAddress, chainName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TokensApi.GetERC20Token: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetERC20TokenWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get single ERC20 token + ApiResponse response = apiInstance.GetERC20TokenWithHttpInfo(contractAddress, chainName); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TokensApi.GetERC20TokenWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | + +### Return type + +[**GetTokenResult**](GetTokenResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListERC20Tokens** +> ListTokensResult ListERC20Tokens (string chainName, DateTime? fromUpdatedAt = null, List? verificationStatus = null, bool? isCanonical = null, string? pageCursor = null, int? pageSize = null) + +List ERC20 tokens + +List ERC20 tokens + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Example +{ + public class ListERC20TokensExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new TokensApi(config); + var chainName = "chainName_example"; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var verificationStatus = new List?(); // List? | List of verification status to filter by (optional) + var isCanonical = true; // bool? | [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List ERC20 tokens + ListTokensResult result = apiInstance.ListERC20Tokens(chainName, fromUpdatedAt, verificationStatus, isCanonical, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TokensApi.ListERC20Tokens: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListERC20TokensWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List ERC20 tokens + ApiResponse response = apiInstance.ListERC20TokensWithHttpInfo(chainName, fromUpdatedAt, verificationStatus, isCanonical, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TokensApi.ListERC20TokensWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **verificationStatus** | [**List<AssetVerificationStatus>?**](AssetVerificationStatus.md) | List of verification status to filter by | [optional] | +| **isCanonical** | **bool?** | [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListTokensResult**](ListTokensResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Trade.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Trade.md new file mode 100644 index 00000000..d909416b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Trade.md @@ -0,0 +1,22 @@ +# Immutable.Api.Model.Trade + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Buy** | [**List<Item>**](Item.md) | Buy items are transferred from the taker to the maker. | +**BuyerAddress** | **string** | Deprecated. Use maker and taker addresses instead of buyer and seller addresses. | +**BuyerFees** | [**List<Fee>**](Fee.md) | Deprecated. Use fees instead. The taker always pays the fees. | +**Fees** | [**List<Fee>**](Fee.md) | | +**Chain** | [**Chain**](Chain.md) | | +**OrderId** | **string** | | +**BlockchainMetadata** | [**TradeBlockchainMetadata**](TradeBlockchainMetadata.md) | | +**IndexedAt** | **DateTime** | Time the on-chain trade event is indexed by the order book system | +**Id** | **string** | Global Trade identifier | +**Sell** | [**List<Item>**](Item.md) | Sell items are transferred from the maker to the taker. | +**SellerAddress** | **string** | Deprecated. Use maker and taker addresses instead of buyer and seller addresses. | +**MakerAddress** | **string** | | +**TakerAddress** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TradeBlockchainMetadata.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TradeBlockchainMetadata.md new file mode 100644 index 00000000..f75ff208 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TradeBlockchainMetadata.md @@ -0,0 +1,14 @@ +# Immutable.Api.Model.TradeBlockchainMetadata +The metadata related to the transaction in which the activity occurred + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionHash** | **string** | The transaction hash of the trade | +**BlockNumber** | **string** | EVM block number (uint64 as string) | +**TransactionIndex** | **string** | Transaction index in a block (uint32 as string) | +**LogIndex** | **string** | The log index of the fulfillment event in a block (uint32 as string) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TradeResult.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TradeResult.md new file mode 100644 index 00000000..8449d7aa --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/TradeResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.TradeResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Trade**](Trade.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Transfer.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Transfer.md new file mode 100644 index 00000000..879a48ad --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Transfer.md @@ -0,0 +1,14 @@ +# Immutable.Api.Model.Transfer +The transfer activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The account address the asset was transferred from | +**To** | **string** | The account address the asset was transferred to | +**Amount** | **string** | The amount of assets transferred | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/UnfulfillableOrder.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/UnfulfillableOrder.md new file mode 100644 index 00000000..fd85f9de --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/UnfulfillableOrder.md @@ -0,0 +1,12 @@ +# Immutable.Api.Model.UnfulfillableOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **string** | OrderID for the requested but unfulfillable order | +**TokenId** | **string** | Token ID for the ERC721 or ERC1155 token when fulfilling a collection order | [optional] +**Reason** | **string** | Nullable string containing error reason if the signing is unsuccessful for the order | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/UserInfo.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/UserInfo.md new file mode 100644 index 00000000..2e38e9f0 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/UserInfo.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.UserInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sub** | **string** | The user's id | +**Email** | **string** | The user's email address | [optional] +**PassportAddress** | **string** | The user's Passport address if it has been registered | [optional] +**LinkedAddresses** | **List<string>** | The user's list of linked addresses | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequest.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequest.md new file mode 100644 index 00000000..557a61af --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequest.md @@ -0,0 +1,21 @@ +# Immutable.Api.Model.VerificationRequest +The verification request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | The id of the verification request | +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The contract address | +**OrgName** | **string** | The name of the organisation associated with this contract | +**Name** | **string** | The name of the collection | +**Symbol** | **string** | The symbol of contract | +**Description** | **string** | The description of collection | +**OrgId** | **string** | The id of the organisation associated with this contract | +**RequesterEmail** | **string** | The email address of the user who requested the contract to be verified | +**ContractType** | **VerificationRequestContractType** | | +**VerificationRequestStatus** | **VerificationRequestStatus** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequestContractType.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequestContractType.md new file mode 100644 index 00000000..6f090c1a --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequestContractType.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.VerificationRequestContractType +The contract type associated with the given request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequestInternal.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequestInternal.md new file mode 100644 index 00000000..930b9641 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequestInternal.md @@ -0,0 +1,22 @@ +# Immutable.Api.Model.VerificationRequestInternal +The verification request (internal) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | The id of the verification request | +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The contract address | +**OrgName** | **string** | The name of the organisation associated with this contract | +**Name** | **string** | The name of the collection | +**Symbol** | **string** | The symbol of contract | +**Description** | **string** | The description of collection | +**OrgId** | **string** | The id of the organisation associated with this contract | +**RequesterEmail** | **string** | The email address of the user who requested the contract to be verified | +**ContractType** | **VerificationRequestContractType** | | +**VerificationRequestStatus** | **VerificationRequestStatus** | | +**OrgTier** | **OrganisationTier** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequestStatus.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequestStatus.md new file mode 100644 index 00000000..d8e6de48 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/VerificationRequestStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.Model.VerificationRequestStatus +The status of the verification request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Wallet.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Wallet.md new file mode 100644 index 00000000..aa36937e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Wallet.md @@ -0,0 +1,16 @@ +# Immutable.Api.Model.Wallet +Linked wallet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | Ethereum address | +**Type** | **string** | Wallet type | +**CreatedAt** | **DateTime** | Created at | +**UpdatedAt** | **DateTime** | Created at | +**Name** | **string** | Name | [optional] +**ClientName** | **string** | Name of client that linked the wallet | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Withdrawal.md b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Withdrawal.md new file mode 100644 index 00000000..ef7f8b41 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/docs/Withdrawal.md @@ -0,0 +1,13 @@ +# Immutable.Api.Model.Withdrawal +The withdrawal activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The account address the asset was withdrawn from | +**Amount** | **string** | The amount of assets withdrawn | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/Assets/Shared/Scripts/Data/API/Search/git_push.sh b/Assets/Shared/Scripts/Data/API/ImmutableApi/git_push.sh similarity index 100% rename from Assets/Shared/Scripts/Data/API/Search/git_push.sh rename to Assets/Shared/Scripts/Data/API/ImmutableApi/git_push.sh diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/ActivitiesApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/ActivitiesApi.cs new file mode 100644 index 00000000..383bb645 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/ActivitiesApi.cs @@ -0,0 +1,906 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IActivitiesApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get a single activity by ID + /// + /// + /// Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// GetActivityResult + GetActivityResult GetActivity(string chainName, Guid activityId); + + /// + /// Get a single activity by ID + /// + /// + /// Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// ApiResponse of GetActivityResult + ApiResponse GetActivityWithHttpInfo(string chainName, Guid activityId); + /// + /// List all activities + /// + /// + /// List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListActivitiesResult + ListActivitiesResult ListActivities(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List all activities + /// + /// + /// List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListActivitiesResult + ApiResponse ListActivitiesWithHttpInfo(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List history of activities + /// + /// + /// List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListActivitiesResult + ListActivitiesResult ListActivityHistory(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List history of activities + /// + /// + /// List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListActivitiesResult + ApiResponse ListActivityHistoryWithHttpInfo(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IActivitiesApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get a single activity by ID + /// + /// + /// Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// Cancellation Token to cancel the request. + /// Task of GetActivityResult + System.Threading.Tasks.Task GetActivityAsync(string chainName, Guid activityId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single activity by ID + /// + /// + /// Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetActivityResult) + System.Threading.Tasks.Task> GetActivityWithHttpInfoAsync(string chainName, Guid activityId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all activities + /// + /// + /// List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListActivitiesResult + System.Threading.Tasks.Task ListActivitiesAsync(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all activities + /// + /// + /// List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListActivitiesResult) + System.Threading.Tasks.Task> ListActivitiesWithHttpInfoAsync(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List history of activities + /// + /// + /// List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListActivitiesResult + System.Threading.Tasks.Task ListActivityHistoryAsync(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List history of activities + /// + /// + /// List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListActivitiesResult) + System.Threading.Tasks.Task> ListActivityHistoryWithHttpInfoAsync(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IActivitiesApi : IActivitiesApiSync, IActivitiesApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ActivitiesApi : IDisposable, IActivitiesApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public ActivitiesApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public ActivitiesApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public ActivitiesApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public ActivitiesApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get a single activity by ID Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// GetActivityResult + public GetActivityResult GetActivity(string chainName, Guid activityId) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetActivityWithHttpInfo(chainName, activityId); + return localVarResponse.Data; + } + + /// + /// Get a single activity by ID Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// ApiResponse of GetActivityResult + public Immutable.Api.Client.ApiResponse GetActivityWithHttpInfo(string chainName, Guid activityId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->GetActivity"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("activity_id", Immutable.Api.Client.ClientUtils.ParameterToString(activityId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/activities/{activity_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetActivity", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single activity by ID Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// Cancellation Token to cancel the request. + /// Task of GetActivityResult + public async System.Threading.Tasks.Task GetActivityAsync(string chainName, Guid activityId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetActivityWithHttpInfoAsync(chainName, activityId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single activity by ID Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetActivityResult) + public async System.Threading.Tasks.Task> GetActivityWithHttpInfoAsync(string chainName, Guid activityId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->GetActivity"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("activity_id", Immutable.Api.Client.ClientUtils.ParameterToString(activityId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/activities/{activity_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetActivity", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all activities List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListActivitiesResult + public ListActivitiesResult ListActivities(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListActivitiesWithHttpInfo(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List all activities List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListActivitiesResult + public Immutable.Api.Client.ApiResponse ListActivitiesWithHttpInfo(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->ListActivities"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "token_id", tokenId)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (activityType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "activity_type", activityType)); + } + if (transactionHash != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "transaction_hash", transactionHash)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/activities", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListActivities", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all activities List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListActivitiesResult + public async System.Threading.Tasks.Task ListActivitiesAsync(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListActivitiesWithHttpInfoAsync(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all activities List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListActivitiesResult) + public async System.Threading.Tasks.Task> ListActivitiesWithHttpInfoAsync(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->ListActivities"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "token_id", tokenId)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (activityType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "activity_type", activityType)); + } + if (transactionHash != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "transaction_hash", transactionHash)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/activities", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListActivities", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List history of activities List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListActivitiesResult + public ListActivitiesResult ListActivityHistory(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListActivityHistoryWithHttpInfo(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List history of activities List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListActivitiesResult + public Immutable.Api.Client.ApiResponse ListActivityHistoryWithHttpInfo(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->ListActivityHistory"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + if (toUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "to_updated_at", toUpdatedAt)); + } + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (activityType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "activity_type", activityType)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/activity-history", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListActivityHistory", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List history of activities List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListActivitiesResult + public async System.Threading.Tasks.Task ListActivityHistoryAsync(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListActivityHistoryWithHttpInfoAsync(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List history of activities List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListActivitiesResult) + public async System.Threading.Tasks.Task> ListActivityHistoryWithHttpInfoAsync(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->ListActivityHistory"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + if (toUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "to_updated_at", toUpdatedAt)); + } + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (activityType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "activity_type", activityType)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/activity-history", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListActivityHistory", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/ChainsApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/ChainsApi.cs new file mode 100644 index 00000000..3ecb15f3 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/ChainsApi.cs @@ -0,0 +1,368 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IChainsApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// List supported chains + /// + /// + /// List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListChainsResult + ListChainsResult ListChains(string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List supported chains + /// + /// + /// List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListChainsResult + ApiResponse ListChainsWithHttpInfo(string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IChainsApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// List supported chains + /// + /// + /// List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListChainsResult + System.Threading.Tasks.Task ListChainsAsync(string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List supported chains + /// + /// + /// List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListChainsResult) + System.Threading.Tasks.Task> ListChainsWithHttpInfoAsync(string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IChainsApi : IChainsApiSync, IChainsApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ChainsApi : IDisposable, IChainsApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public ChainsApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public ChainsApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public ChainsApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public ChainsApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// List supported chains List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListChainsResult + public ListChainsResult ListChains(string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListChainsWithHttpInfo(pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List supported chains List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListChainsResult + public Immutable.Api.Client.ApiResponse ListChainsWithHttpInfo(string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListChains", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List supported chains List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListChainsResult + public async System.Threading.Tasks.Task ListChainsAsync(string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListChainsWithHttpInfoAsync(pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List supported chains List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListChainsResult) + public async System.Threading.Tasks.Task> ListChainsWithHttpInfoAsync(string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListChains", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/CollectionsApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/CollectionsApi.cs new file mode 100644 index 00000000..9967e827 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/CollectionsApi.cs @@ -0,0 +1,1072 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICollectionsApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get collection by contract address + /// + /// + /// Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// GetCollectionResult + GetCollectionResult GetCollection(string contractAddress, string chainName); + + /// + /// Get collection by contract address + /// + /// + /// Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// ApiResponse of GetCollectionResult + ApiResponse GetCollectionWithHttpInfo(string contractAddress, string chainName); + /// + /// List all collections + /// + /// + /// List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionsResult + ListCollectionsResult ListCollections(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List all collections + /// + /// + /// List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionsResult + ApiResponse ListCollectionsWithHttpInfo(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List collections by NFT owner + /// + /// + /// List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionsResult + ListCollectionsResult ListCollectionsByNFTOwner(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List collections by NFT owner + /// + /// + /// List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionsResult + ApiResponse ListCollectionsByNFTOwnerWithHttpInfo(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// Refresh collection metadata + /// + /// + /// Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// RefreshCollectionMetadataResult + RefreshCollectionMetadataResult RefreshCollectionMetadata(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest); + + /// + /// Refresh collection metadata + /// + /// + /// Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// ApiResponse of RefreshCollectionMetadataResult + ApiResponse RefreshCollectionMetadataWithHttpInfo(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICollectionsApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get collection by contract address + /// + /// + /// Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetCollectionResult + System.Threading.Tasks.Task GetCollectionAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get collection by contract address + /// + /// + /// Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCollectionResult) + System.Threading.Tasks.Task> GetCollectionWithHttpInfoAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all collections + /// + /// + /// List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionsResult + System.Threading.Tasks.Task ListCollectionsAsync(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all collections + /// + /// + /// List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionsResult) + System.Threading.Tasks.Task> ListCollectionsWithHttpInfoAsync(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List collections by NFT owner + /// + /// + /// List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionsResult + System.Threading.Tasks.Task ListCollectionsByNFTOwnerAsync(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List collections by NFT owner + /// + /// + /// List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionsResult) + System.Threading.Tasks.Task> ListCollectionsByNFTOwnerWithHttpInfoAsync(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Refresh collection metadata + /// + /// + /// Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of RefreshCollectionMetadataResult + System.Threading.Tasks.Task RefreshCollectionMetadataAsync(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Refresh collection metadata + /// + /// + /// Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (RefreshCollectionMetadataResult) + System.Threading.Tasks.Task> RefreshCollectionMetadataWithHttpInfoAsync(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICollectionsApi : ICollectionsApiSync, ICollectionsApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CollectionsApi : IDisposable, ICollectionsApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public CollectionsApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public CollectionsApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public CollectionsApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public CollectionsApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get collection by contract address Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// GetCollectionResult + public GetCollectionResult GetCollection(string contractAddress, string chainName) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetCollectionWithHttpInfo(contractAddress, chainName); + return localVarResponse.Data; + } + + /// + /// Get collection by contract address Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// ApiResponse of GetCollectionResult + public Immutable.Api.Client.ApiResponse GetCollectionWithHttpInfo(string contractAddress, string chainName) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling CollectionsApi->GetCollection"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->GetCollection"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCollection", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get collection by contract address Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetCollectionResult + public async System.Threading.Tasks.Task GetCollectionAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetCollectionWithHttpInfoAsync(contractAddress, chainName, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get collection by contract address Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCollectionResult) + public async System.Threading.Tasks.Task> GetCollectionWithHttpInfoAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling CollectionsApi->GetCollection"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->GetCollection"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCollection", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all collections List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionsResult + public ListCollectionsResult ListCollections(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListCollectionsWithHttpInfo(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List all collections List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionsResult + public Immutable.Api.Client.ApiResponse ListCollectionsWithHttpInfo(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->ListCollections"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + } + if (verificationStatus != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "verification_status", verificationStatus)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollections", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all collections List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionsResult + public async System.Threading.Tasks.Task ListCollectionsAsync(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListCollectionsWithHttpInfoAsync(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all collections List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionsResult) + public async System.Threading.Tasks.Task> ListCollectionsWithHttpInfoAsync(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->ListCollections"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + } + if (verificationStatus != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "verification_status", verificationStatus)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollections", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List collections by NFT owner List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionsResult + public ListCollectionsResult ListCollectionsByNFTOwner(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListCollectionsByNFTOwnerWithHttpInfo(accountAddress, chainName, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List collections by NFT owner List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionsResult + public Immutable.Api.Client.ApiResponse ListCollectionsByNFTOwnerWithHttpInfo(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'accountAddress' is set + if (accountAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'accountAddress' when calling CollectionsApi->ListCollectionsByNFTOwner"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->ListCollectionsByNFTOwner"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("account_address", Immutable.Api.Client.ClientUtils.ParameterToString(accountAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/accounts/{account_address}/collections", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollectionsByNFTOwner", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List collections by NFT owner List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionsResult + public async System.Threading.Tasks.Task ListCollectionsByNFTOwnerAsync(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListCollectionsByNFTOwnerWithHttpInfoAsync(accountAddress, chainName, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List collections by NFT owner List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionsResult) + public async System.Threading.Tasks.Task> ListCollectionsByNFTOwnerWithHttpInfoAsync(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'accountAddress' is set + if (accountAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'accountAddress' when calling CollectionsApi->ListCollectionsByNFTOwner"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->ListCollectionsByNFTOwner"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("account_address", Immutable.Api.Client.ClientUtils.ParameterToString(accountAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/accounts/{account_address}/collections", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollectionsByNFTOwner", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh collection metadata Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// RefreshCollectionMetadataResult + public RefreshCollectionMetadataResult RefreshCollectionMetadata(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest) + { + Immutable.Api.Client.ApiResponse localVarResponse = RefreshCollectionMetadataWithHttpInfo(contractAddress, chainName, refreshCollectionMetadataRequest); + return localVarResponse.Data; + } + + /// + /// Refresh collection metadata Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// ApiResponse of RefreshCollectionMetadataResult + public Immutable.Api.Client.ApiResponse RefreshCollectionMetadataWithHttpInfo(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling CollectionsApi->RefreshCollectionMetadata"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->RefreshCollectionMetadata"); + + // verify the required parameter 'refreshCollectionMetadataRequest' is set + if (refreshCollectionMetadataRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'refreshCollectionMetadataRequest' when calling CollectionsApi->RefreshCollectionMetadata"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = refreshCollectionMetadataRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshCollectionMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh collection metadata Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of RefreshCollectionMetadataResult + public async System.Threading.Tasks.Task RefreshCollectionMetadataAsync(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = RefreshCollectionMetadataWithHttpInfoAsync(contractAddress, chainName, refreshCollectionMetadataRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Refresh collection metadata Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (RefreshCollectionMetadataResult) + public async System.Threading.Tasks.Task> RefreshCollectionMetadataWithHttpInfoAsync(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling CollectionsApi->RefreshCollectionMetadata"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->RefreshCollectionMetadata"); + + // verify the required parameter 'refreshCollectionMetadataRequest' is set + if (refreshCollectionMetadataRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'refreshCollectionMetadataRequest' when calling CollectionsApi->RefreshCollectionMetadata"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = refreshCollectionMetadataRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshCollectionMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/CraftingApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/CraftingApi.cs new file mode 100644 index 00000000..ca856258 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/CraftingApi.cs @@ -0,0 +1,384 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICraftingApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Sign a crafting payload + /// + /// + /// Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// SignCraftingResult + SignCraftingResult SignCraftingPayload(string chainName, SignCraftingRequest signCraftingRequest); + + /// + /// Sign a crafting payload + /// + /// + /// Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// ApiResponse of SignCraftingResult + ApiResponse SignCraftingPayloadWithHttpInfo(string chainName, SignCraftingRequest signCraftingRequest); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICraftingApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Sign a crafting payload + /// + /// + /// Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of SignCraftingResult + System.Threading.Tasks.Task SignCraftingPayloadAsync(string chainName, SignCraftingRequest signCraftingRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Sign a crafting payload + /// + /// + /// Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SignCraftingResult) + System.Threading.Tasks.Task> SignCraftingPayloadWithHttpInfoAsync(string chainName, SignCraftingRequest signCraftingRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICraftingApi : ICraftingApiSync, ICraftingApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CraftingApi : IDisposable, ICraftingApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public CraftingApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public CraftingApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public CraftingApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public CraftingApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Sign a crafting payload Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// SignCraftingResult + public SignCraftingResult SignCraftingPayload(string chainName, SignCraftingRequest signCraftingRequest) + { + Immutable.Api.Client.ApiResponse localVarResponse = SignCraftingPayloadWithHttpInfo(chainName, signCraftingRequest); + return localVarResponse.Data; + } + + /// + /// Sign a crafting payload Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// ApiResponse of SignCraftingResult + public Immutable.Api.Client.ApiResponse SignCraftingPayloadWithHttpInfo(string chainName, SignCraftingRequest signCraftingRequest) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CraftingApi->SignCraftingPayload"); + + // verify the required parameter 'signCraftingRequest' is set + if (signCraftingRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'signCraftingRequest' when calling CraftingApi->SignCraftingPayload"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = signCraftingRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/crafting/sign", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SignCraftingPayload", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Sign a crafting payload Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of SignCraftingResult + public async System.Threading.Tasks.Task SignCraftingPayloadAsync(string chainName, SignCraftingRequest signCraftingRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = SignCraftingPayloadWithHttpInfoAsync(chainName, signCraftingRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Sign a crafting payload Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SignCraftingResult) + public async System.Threading.Tasks.Task> SignCraftingPayloadWithHttpInfoAsync(string chainName, SignCraftingRequest signCraftingRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling CraftingApi->SignCraftingPayload"); + + // verify the required parameter 'signCraftingRequest' is set + if (signCraftingRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'signCraftingRequest' when calling CraftingApi->SignCraftingPayload"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = signCraftingRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/crafting/sign", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SignCraftingPayload", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/MetadataApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/MetadataApi.cs new file mode 100644 index 00000000..7b09156b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/MetadataApi.cs @@ -0,0 +1,1272 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMetadataApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get metadata by ID + /// + /// + /// Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// GetMetadataResult + GetMetadataResult GetMetadata(string chainName, string contractAddress, Guid metadataId); + + /// + /// Get metadata by ID + /// + /// + /// Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// ApiResponse of GetMetadataResult + ApiResponse GetMetadataWithHttpInfo(string chainName, string contractAddress, Guid metadataId); + /// + /// Get a list of metadata from the given contract + /// + /// + /// Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListMetadataResult + ListMetadataResult ListMetadata(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// Get a list of metadata from the given contract + /// + /// + /// Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListMetadataResult + ApiResponse ListMetadataWithHttpInfo(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// Get a list of metadata from the given chain + /// + /// + /// Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListMetadataResult + ListMetadataResult ListMetadataForChain(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// Get a list of metadata from the given chain + /// + /// + /// Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListMetadataResult + ApiResponse ListMetadataForChainWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// Refresh stacked metadata + /// + /// + /// Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// MetadataRefreshRateLimitResult + MetadataRefreshRateLimitResult RefreshMetadataByID(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest); + + /// + /// Refresh stacked metadata + /// + /// + /// Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// ApiResponse of MetadataRefreshRateLimitResult + ApiResponse RefreshMetadataByIDWithHttpInfo(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest); + /// + /// Refresh NFT metadata + /// + /// + /// Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// MetadataRefreshRateLimitResult + MetadataRefreshRateLimitResult RefreshNFTMetadataByTokenID(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest); + + /// + /// Refresh NFT metadata + /// + /// + /// Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// ApiResponse of MetadataRefreshRateLimitResult + ApiResponse RefreshNFTMetadataByTokenIDWithHttpInfo(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMetadataApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get metadata by ID + /// + /// + /// Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// Cancellation Token to cancel the request. + /// Task of GetMetadataResult + System.Threading.Tasks.Task GetMetadataAsync(string chainName, string contractAddress, Guid metadataId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get metadata by ID + /// + /// + /// Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetMetadataResult) + System.Threading.Tasks.Task> GetMetadataWithHttpInfoAsync(string chainName, string contractAddress, Guid metadataId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of metadata from the given contract + /// + /// + /// Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListMetadataResult + System.Threading.Tasks.Task ListMetadataAsync(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of metadata from the given contract + /// + /// + /// Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMetadataResult) + System.Threading.Tasks.Task> ListMetadataWithHttpInfoAsync(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of metadata from the given chain + /// + /// + /// Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListMetadataResult + System.Threading.Tasks.Task ListMetadataForChainAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of metadata from the given chain + /// + /// + /// Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMetadataResult) + System.Threading.Tasks.Task> ListMetadataForChainWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Refresh stacked metadata + /// + /// + /// Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// Cancellation Token to cancel the request. + /// Task of MetadataRefreshRateLimitResult + System.Threading.Tasks.Task RefreshMetadataByIDAsync(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Refresh stacked metadata + /// + /// + /// Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MetadataRefreshRateLimitResult) + System.Threading.Tasks.Task> RefreshMetadataByIDWithHttpInfoAsync(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Refresh NFT metadata + /// + /// + /// Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// Cancellation Token to cancel the request. + /// Task of MetadataRefreshRateLimitResult + System.Threading.Tasks.Task RefreshNFTMetadataByTokenIDAsync(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Refresh NFT metadata + /// + /// + /// Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MetadataRefreshRateLimitResult) + System.Threading.Tasks.Task> RefreshNFTMetadataByTokenIDWithHttpInfoAsync(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMetadataApi : IMetadataApiSync, IMetadataApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MetadataApi : IDisposable, IMetadataApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public MetadataApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public MetadataApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public MetadataApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public MetadataApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get metadata by ID Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// GetMetadataResult + public GetMetadataResult GetMetadata(string chainName, string contractAddress, Guid metadataId) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetMetadataWithHttpInfo(chainName, contractAddress, metadataId); + return localVarResponse.Data; + } + + /// + /// Get metadata by ID Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// ApiResponse of GetMetadataResult + public Immutable.Api.Client.ApiResponse GetMetadataWithHttpInfo(string chainName, string contractAddress, Guid metadataId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->GetMetadata"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->GetMetadata"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("metadata_id", Immutable.Api.Client.ClientUtils.ParameterToString(metadataId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get metadata by ID Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// Cancellation Token to cancel the request. + /// Task of GetMetadataResult + public async System.Threading.Tasks.Task GetMetadataAsync(string chainName, string contractAddress, Guid metadataId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetMetadataWithHttpInfoAsync(chainName, contractAddress, metadataId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get metadata by ID Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetMetadataResult) + public async System.Threading.Tasks.Task> GetMetadataWithHttpInfoAsync(string chainName, string contractAddress, Guid metadataId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->GetMetadata"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->GetMetadata"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("metadata_id", Immutable.Api.Client.ClientUtils.ParameterToString(metadataId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a list of metadata from the given contract Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListMetadataResult + public ListMetadataResult ListMetadata(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListMetadataWithHttpInfo(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// Get a list of metadata from the given contract Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListMetadataResult + public Immutable.Api.Client.ApiResponse ListMetadataWithHttpInfo(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListMetadata"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->ListMetadata"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a list of metadata from the given contract Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListMetadataResult + public async System.Threading.Tasks.Task ListMetadataAsync(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListMetadataWithHttpInfoAsync(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a list of metadata from the given contract Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMetadataResult) + public async System.Threading.Tasks.Task> ListMetadataWithHttpInfoAsync(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListMetadata"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->ListMetadata"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a list of metadata from the given chain Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListMetadataResult + public ListMetadataResult ListMetadataForChain(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListMetadataForChainWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// Get a list of metadata from the given chain Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListMetadataResult + public Immutable.Api.Client.ApiResponse ListMetadataForChainWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListMetadataForChain"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMetadataForChain", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a list of metadata from the given chain Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListMetadataResult + public async System.Threading.Tasks.Task ListMetadataForChainAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListMetadataForChainWithHttpInfoAsync(chainName, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a list of metadata from the given chain Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMetadataResult) + public async System.Threading.Tasks.Task> ListMetadataForChainWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListMetadataForChain"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMetadataForChain", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh stacked metadata Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// MetadataRefreshRateLimitResult + public MetadataRefreshRateLimitResult RefreshMetadataByID(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest) + { + Immutable.Api.Client.ApiResponse localVarResponse = RefreshMetadataByIDWithHttpInfo(chainName, contractAddress, refreshMetadataByIDRequest); + return localVarResponse.Data; + } + + /// + /// Refresh stacked metadata Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// ApiResponse of MetadataRefreshRateLimitResult + public Immutable.Api.Client.ApiResponse RefreshMetadataByIDWithHttpInfo(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->RefreshMetadataByID"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->RefreshMetadataByID"); + + // verify the required parameter 'refreshMetadataByIDRequest' is set + if (refreshMetadataByIDRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'refreshMetadataByIDRequest' when calling MetadataApi->RefreshMetadataByID"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.Data = refreshMetadataByIDRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshMetadataByID", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh stacked metadata Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// Cancellation Token to cancel the request. + /// Task of MetadataRefreshRateLimitResult + public async System.Threading.Tasks.Task RefreshMetadataByIDAsync(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = RefreshMetadataByIDWithHttpInfoAsync(chainName, contractAddress, refreshMetadataByIDRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Refresh stacked metadata Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MetadataRefreshRateLimitResult) + public async System.Threading.Tasks.Task> RefreshMetadataByIDWithHttpInfoAsync(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->RefreshMetadataByID"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->RefreshMetadataByID"); + + // verify the required parameter 'refreshMetadataByIDRequest' is set + if (refreshMetadataByIDRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'refreshMetadataByIDRequest' when calling MetadataApi->RefreshMetadataByID"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.Data = refreshMetadataByIDRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshMetadataByID", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh NFT metadata Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// MetadataRefreshRateLimitResult + public MetadataRefreshRateLimitResult RefreshNFTMetadataByTokenID(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest) + { + Immutable.Api.Client.ApiResponse localVarResponse = RefreshNFTMetadataByTokenIDWithHttpInfo(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest); + return localVarResponse.Data; + } + + /// + /// Refresh NFT metadata Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// ApiResponse of MetadataRefreshRateLimitResult + public Immutable.Api.Client.ApiResponse RefreshNFTMetadataByTokenIDWithHttpInfo(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + // verify the required parameter 'refreshNFTMetadataByTokenIDRequest' is set + if (refreshNFTMetadataByTokenIDRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'refreshNFTMetadataByTokenIDRequest' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = refreshNFTMetadataByTokenIDRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshNFTMetadataByTokenID", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh NFT metadata Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// Cancellation Token to cancel the request. + /// Task of MetadataRefreshRateLimitResult + public async System.Threading.Tasks.Task RefreshNFTMetadataByTokenIDAsync(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = RefreshNFTMetadataByTokenIDWithHttpInfoAsync(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Refresh NFT metadata Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MetadataRefreshRateLimitResult) + public async System.Threading.Tasks.Task> RefreshNFTMetadataByTokenIDWithHttpInfoAsync(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + // verify the required parameter 'refreshNFTMetadataByTokenIDRequest' is set + if (refreshNFTMetadataByTokenIDRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'refreshNFTMetadataByTokenIDRequest' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = refreshNFTMetadataByTokenIDRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshNFTMetadataByTokenID", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/NftOwnersApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/NftOwnersApi.cs new file mode 100644 index 00000000..0b122a25 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/NftOwnersApi.cs @@ -0,0 +1,892 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftOwnersApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// List all NFT owners + /// + /// + /// List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTOwnersResult + ListNFTOwnersResult ListAllNFTOwners(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List all NFT owners + /// + /// + /// List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTOwnersResult + ApiResponse ListAllNFTOwnersWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List NFT owners by token ID + /// + /// + /// List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTOwnersResult + ListNFTOwnersResult ListNFTOwners(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List NFT owners by token ID + /// + /// + /// List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTOwnersResult + ApiResponse ListNFTOwnersWithHttpInfo(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List owners by contract address + /// + /// + /// List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionOwnersResult + ListCollectionOwnersResult ListOwnersByContractAddress(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List owners by contract address + /// + /// + /// List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionOwnersResult + ApiResponse ListOwnersByContractAddressWithHttpInfo(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftOwnersApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// List all NFT owners + /// + /// + /// List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTOwnersResult + System.Threading.Tasks.Task ListAllNFTOwnersAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all NFT owners + /// + /// + /// List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTOwnersResult) + System.Threading.Tasks.Task> ListAllNFTOwnersWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List NFT owners by token ID + /// + /// + /// List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTOwnersResult + System.Threading.Tasks.Task ListNFTOwnersAsync(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List NFT owners by token ID + /// + /// + /// List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTOwnersResult) + System.Threading.Tasks.Task> ListNFTOwnersWithHttpInfoAsync(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List owners by contract address + /// + /// + /// List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionOwnersResult + System.Threading.Tasks.Task ListOwnersByContractAddressAsync(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List owners by contract address + /// + /// + /// List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionOwnersResult) + System.Threading.Tasks.Task> ListOwnersByContractAddressWithHttpInfoAsync(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftOwnersApi : INftOwnersApiSync, INftOwnersApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class NftOwnersApi : IDisposable, INftOwnersApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public NftOwnersApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public NftOwnersApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public NftOwnersApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public NftOwnersApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// List all NFT owners List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTOwnersResult + public ListNFTOwnersResult ListAllNFTOwners(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListAllNFTOwnersWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List all NFT owners List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTOwnersResult + public Immutable.Api.Client.ApiResponse ListAllNFTOwnersWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListAllNFTOwners"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/nft-owners", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListAllNFTOwners", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all NFT owners List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTOwnersResult + public async System.Threading.Tasks.Task ListAllNFTOwnersAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListAllNFTOwnersWithHttpInfoAsync(chainName, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all NFT owners List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTOwnersResult) + public async System.Threading.Tasks.Task> ListAllNFTOwnersWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListAllNFTOwners"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/nft-owners", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListAllNFTOwners", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFT owners by token ID List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTOwnersResult + public ListNFTOwnersResult ListNFTOwners(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListNFTOwnersWithHttpInfo(contractAddress, tokenId, chainName, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List NFT owners by token ID List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTOwnersResult + public Immutable.Api.Client.ApiResponse ListNFTOwnersWithHttpInfo(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftOwnersApi->ListNFTOwners"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'tokenId' when calling NftOwnersApi->ListNFTOwners"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListNFTOwners"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("token_id", Immutable.Api.Client.ClientUtils.ParameterToString(tokenId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTOwners", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFT owners by token ID List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTOwnersResult + public async System.Threading.Tasks.Task ListNFTOwnersAsync(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListNFTOwnersWithHttpInfoAsync(contractAddress, tokenId, chainName, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List NFT owners by token ID List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTOwnersResult) + public async System.Threading.Tasks.Task> ListNFTOwnersWithHttpInfoAsync(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftOwnersApi->ListNFTOwners"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'tokenId' when calling NftOwnersApi->ListNFTOwners"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListNFTOwners"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("token_id", Immutable.Api.Client.ClientUtils.ParameterToString(tokenId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTOwners", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List owners by contract address List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionOwnersResult + public ListCollectionOwnersResult ListOwnersByContractAddress(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListOwnersByContractAddressWithHttpInfo(contractAddress, chainName, accountAddress, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List owners by contract address List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionOwnersResult + public Immutable.Api.Client.ApiResponse ListOwnersByContractAddressWithHttpInfo(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftOwnersApi->ListOwnersByContractAddress"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListOwnersByContractAddress"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "account_address", accountAddress)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/owners", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListOwnersByContractAddress", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List owners by contract address List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionOwnersResult + public async System.Threading.Tasks.Task ListOwnersByContractAddressAsync(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListOwnersByContractAddressWithHttpInfoAsync(contractAddress, chainName, accountAddress, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List owners by contract address List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionOwnersResult) + public async System.Threading.Tasks.Task> ListOwnersByContractAddressWithHttpInfoAsync(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftOwnersApi->ListOwnersByContractAddress"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListOwnersByContractAddress"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "account_address", accountAddress)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/owners", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListOwnersByContractAddress", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/NftsApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/NftsApi.cs new file mode 100644 index 00000000..4872d2d8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/NftsApi.cs @@ -0,0 +1,1808 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftsApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Mint NFTs + /// + /// + /// Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// CreateMintRequestResult + CreateMintRequestResult CreateMintRequest(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest); + + /// + /// Mint NFTs + /// + /// + /// Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// ApiResponse of CreateMintRequestResult + ApiResponse CreateMintRequestWithHttpInfo(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest); + /// + /// Get mint request by reference ID + /// + /// + /// Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// ListMintRequestsResult + ListMintRequestsResult GetMintRequest(string contractAddress, string chainName, string referenceId); + + /// + /// Get mint request by reference ID + /// + /// + /// Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// ApiResponse of ListMintRequestsResult + ApiResponse GetMintRequestWithHttpInfo(string contractAddress, string chainName, string referenceId); + /// + /// Get NFT by token ID + /// + /// + /// Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// GetNFTResult + GetNFTResult GetNFT(string contractAddress, string tokenId, string chainName); + + /// + /// Get NFT by token ID + /// + /// + /// Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// ApiResponse of GetNFTResult + ApiResponse GetNFTWithHttpInfo(string contractAddress, string tokenId, string chainName); + /// + /// List all NFTs + /// + /// + /// List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsResult + ListNFTsResult ListAllNFTs(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List all NFTs + /// + /// + /// List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsResult + ApiResponse ListAllNFTsWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List mint requests + /// + /// + /// Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// ListMintRequestsResult + ListMintRequestsResult ListMintRequests(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?)); + + /// + /// List mint requests + /// + /// + /// Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// ApiResponse of ListMintRequestsResult + ApiResponse ListMintRequestsWithHttpInfo(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?)); + /// + /// List NFTs by contract address + /// + /// + /// List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsResult + ListNFTsResult ListNFTs(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List NFTs by contract address + /// + /// + /// List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsResult + ApiResponse ListNFTsWithHttpInfo(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List NFTs by account address + /// + /// + /// List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsByOwnerResult + ListNFTsByOwnerResult ListNFTsByAccountAddress(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List NFTs by account address + /// + /// + /// List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsByOwnerResult + ApiResponse ListNFTsByAccountAddressWithHttpInfo(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftsApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Mint NFTs + /// + /// + /// Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// Cancellation Token to cancel the request. + /// Task of CreateMintRequestResult + System.Threading.Tasks.Task CreateMintRequestAsync(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Mint NFTs + /// + /// + /// Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateMintRequestResult) + System.Threading.Tasks.Task> CreateMintRequestWithHttpInfoAsync(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get mint request by reference ID + /// + /// + /// Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// Cancellation Token to cancel the request. + /// Task of ListMintRequestsResult + System.Threading.Tasks.Task GetMintRequestAsync(string contractAddress, string chainName, string referenceId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get mint request by reference ID + /// + /// + /// Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMintRequestsResult) + System.Threading.Tasks.Task> GetMintRequestWithHttpInfoAsync(string contractAddress, string chainName, string referenceId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get NFT by token ID + /// + /// + /// Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetNFTResult + System.Threading.Tasks.Task GetNFTAsync(string contractAddress, string tokenId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get NFT by token ID + /// + /// + /// Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNFTResult) + System.Threading.Tasks.Task> GetNFTWithHttpInfoAsync(string contractAddress, string tokenId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all NFTs + /// + /// + /// List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsResult + System.Threading.Tasks.Task ListAllNFTsAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all NFTs + /// + /// + /// List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsResult) + System.Threading.Tasks.Task> ListAllNFTsWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List mint requests + /// + /// + /// Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// Cancellation Token to cancel the request. + /// Task of ListMintRequestsResult + System.Threading.Tasks.Task ListMintRequestsAsync(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List mint requests + /// + /// + /// Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMintRequestsResult) + System.Threading.Tasks.Task> ListMintRequestsWithHttpInfoAsync(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List NFTs by contract address + /// + /// + /// List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsResult + System.Threading.Tasks.Task ListNFTsAsync(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List NFTs by contract address + /// + /// + /// List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsResult) + System.Threading.Tasks.Task> ListNFTsWithHttpInfoAsync(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List NFTs by account address + /// + /// + /// List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsByOwnerResult + System.Threading.Tasks.Task ListNFTsByAccountAddressAsync(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List NFTs by account address + /// + /// + /// List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsByOwnerResult) + System.Threading.Tasks.Task> ListNFTsByAccountAddressWithHttpInfoAsync(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftsApi : INftsApiSync, INftsApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class NftsApi : IDisposable, INftsApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public NftsApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public NftsApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public NftsApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public NftsApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Mint NFTs Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// CreateMintRequestResult + public CreateMintRequestResult CreateMintRequest(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest) + { + Immutable.Api.Client.ApiResponse localVarResponse = CreateMintRequestWithHttpInfo(contractAddress, chainName, createMintRequestRequest); + return localVarResponse.Data; + } + + /// + /// Mint NFTs Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// ApiResponse of CreateMintRequestResult + public Immutable.Api.Client.ApiResponse CreateMintRequestWithHttpInfo(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->CreateMintRequest"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->CreateMintRequest"); + + // verify the required parameter 'createMintRequestRequest' is set + if (createMintRequestRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'createMintRequestRequest' when calling NftsApi->CreateMintRequest"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createMintRequestRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateMintRequest", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Mint NFTs Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// Cancellation Token to cancel the request. + /// Task of CreateMintRequestResult + public async System.Threading.Tasks.Task CreateMintRequestAsync(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CreateMintRequestWithHttpInfoAsync(contractAddress, chainName, createMintRequestRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Mint NFTs Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateMintRequestResult) + public async System.Threading.Tasks.Task> CreateMintRequestWithHttpInfoAsync(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->CreateMintRequest"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->CreateMintRequest"); + + // verify the required parameter 'createMintRequestRequest' is set + if (createMintRequestRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'createMintRequestRequest' when calling NftsApi->CreateMintRequest"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createMintRequestRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateMintRequest", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get mint request by reference ID Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// ListMintRequestsResult + public ListMintRequestsResult GetMintRequest(string contractAddress, string chainName, string referenceId) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetMintRequestWithHttpInfo(contractAddress, chainName, referenceId); + return localVarResponse.Data; + } + + /// + /// Get mint request by reference ID Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// ApiResponse of ListMintRequestsResult + public Immutable.Api.Client.ApiResponse GetMintRequestWithHttpInfo(string contractAddress, string chainName, string referenceId) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->GetMintRequest"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->GetMintRequest"); + + // verify the required parameter 'referenceId' is set + if (referenceId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'referenceId' when calling NftsApi->GetMintRequest"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("reference_id", Immutable.Api.Client.ClientUtils.ParameterToString(referenceId)); // path parameter + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMintRequest", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get mint request by reference ID Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// Cancellation Token to cancel the request. + /// Task of ListMintRequestsResult + public async System.Threading.Tasks.Task GetMintRequestAsync(string contractAddress, string chainName, string referenceId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetMintRequestWithHttpInfoAsync(contractAddress, chainName, referenceId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get mint request by reference ID Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMintRequestsResult) + public async System.Threading.Tasks.Task> GetMintRequestWithHttpInfoAsync(string contractAddress, string chainName, string referenceId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->GetMintRequest"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->GetMintRequest"); + + // verify the required parameter 'referenceId' is set + if (referenceId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'referenceId' when calling NftsApi->GetMintRequest"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("reference_id", Immutable.Api.Client.ClientUtils.ParameterToString(referenceId)); // path parameter + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMintRequest", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get NFT by token ID Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// GetNFTResult + public GetNFTResult GetNFT(string contractAddress, string tokenId, string chainName) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetNFTWithHttpInfo(contractAddress, tokenId, chainName); + return localVarResponse.Data; + } + + /// + /// Get NFT by token ID Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// ApiResponse of GetNFTResult + public Immutable.Api.Client.ApiResponse GetNFTWithHttpInfo(string contractAddress, string tokenId, string chainName) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->GetNFT"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'tokenId' when calling NftsApi->GetNFT"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->GetNFT"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("token_id", Immutable.Api.Client.ClientUtils.ParameterToString(tokenId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNFT", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get NFT by token ID Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetNFTResult + public async System.Threading.Tasks.Task GetNFTAsync(string contractAddress, string tokenId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetNFTWithHttpInfoAsync(contractAddress, tokenId, chainName, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get NFT by token ID Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNFTResult) + public async System.Threading.Tasks.Task> GetNFTWithHttpInfoAsync(string contractAddress, string tokenId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->GetNFT"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'tokenId' when calling NftsApi->GetNFT"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->GetNFT"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("token_id", Immutable.Api.Client.ClientUtils.ParameterToString(tokenId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNFT", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all NFTs List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsResult + public ListNFTsResult ListAllNFTs(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListAllNFTsWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List all NFTs List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsResult + public Immutable.Api.Client.ApiResponse ListAllNFTsWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListAllNFTs"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListAllNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all NFTs List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsResult + public async System.Threading.Tasks.Task ListAllNFTsAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListAllNFTsWithHttpInfoAsync(chainName, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all NFTs List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsResult) + public async System.Threading.Tasks.Task> ListAllNFTsWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListAllNFTs"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListAllNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List mint requests Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// ListMintRequestsResult + public ListMintRequestsResult ListMintRequests(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListMintRequestsWithHttpInfo(contractAddress, chainName, pageCursor, pageSize, status); + return localVarResponse.Data; + } + + /// + /// List mint requests Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// ApiResponse of ListMintRequestsResult + public Immutable.Api.Client.ApiResponse ListMintRequestsWithHttpInfo(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->ListMintRequests"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListMintRequests"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMintRequests", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List mint requests Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// Cancellation Token to cancel the request. + /// Task of ListMintRequestsResult + public async System.Threading.Tasks.Task ListMintRequestsAsync(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListMintRequestsWithHttpInfoAsync(contractAddress, chainName, pageCursor, pageSize, status, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List mint requests Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMintRequestsResult) + public async System.Threading.Tasks.Task> ListMintRequestsWithHttpInfoAsync(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->ListMintRequests"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListMintRequests"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMintRequests", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFTs by contract address List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsResult + public ListNFTsResult ListNFTs(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListNFTsWithHttpInfo(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List NFTs by contract address List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsResult + public Immutable.Api.Client.ApiResponse ListNFTsWithHttpInfo(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->ListNFTs"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListNFTs"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFTs by contract address List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsResult + public async System.Threading.Tasks.Task ListNFTsAsync(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListNFTsWithHttpInfoAsync(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List NFTs by contract address List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsResult) + public async System.Threading.Tasks.Task> ListNFTsWithHttpInfoAsync(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->ListNFTs"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListNFTs"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFTs by account address List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsByOwnerResult + public ListNFTsByOwnerResult ListNFTsByAccountAddress(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListNFTsByAccountAddressWithHttpInfo(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List NFTs by account address List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsByOwnerResult + public Immutable.Api.Client.ApiResponse ListNFTsByAccountAddressWithHttpInfo(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'accountAddress' is set + if (accountAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'accountAddress' when calling NftsApi->ListNFTsByAccountAddress"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListNFTsByAccountAddress"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("account_address", Immutable.Api.Client.ClientUtils.ParameterToString(accountAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/accounts/{account_address}/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTsByAccountAddress", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFTs by account address List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsByOwnerResult + public async System.Threading.Tasks.Task ListNFTsByAccountAddressAsync(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListNFTsByAccountAddressWithHttpInfoAsync(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List NFTs by account address List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsByOwnerResult) + public async System.Threading.Tasks.Task> ListNFTsByAccountAddressWithHttpInfoAsync(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'accountAddress' is set + if (accountAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'accountAddress' when calling NftsApi->ListNFTsByAccountAddress"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListNFTsByAccountAddress"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("account_address", Immutable.Api.Client.ClientUtils.ParameterToString(accountAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/accounts/{account_address}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTsByAccountAddress", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/OrdersApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/OrdersApi.cs new file mode 100644 index 00000000..de472c87 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/OrdersApi.cs @@ -0,0 +1,3158 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOrdersApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Cancel one or more orders + /// + /// + /// Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// CancelOrdersResult + CancelOrdersResult CancelOrders(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody); + + /// + /// Cancel one or more orders + /// + /// + /// Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CancelOrdersResult + ApiResponse CancelOrdersWithHttpInfo(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody); + /// + /// Create a bid + /// + /// + /// Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// BidResult + BidResult CreateBid(string chainName, CreateBidRequestBody createBidRequestBody); + + /// + /// Create a bid + /// + /// + /// Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of BidResult + ApiResponse CreateBidWithHttpInfo(string chainName, CreateBidRequestBody createBidRequestBody); + /// + /// Create a collection bid + /// + /// + /// Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// CollectionBidResult + CollectionBidResult CreateCollectionBid(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody); + + /// + /// Create a collection bid + /// + /// + /// Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CollectionBidResult + ApiResponse CreateCollectionBidWithHttpInfo(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody); + /// + /// Create a listing + /// + /// + /// Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// ListingResult + ListingResult CreateListing(string chainName, CreateListingRequestBody createListingRequestBody); + + /// + /// Create a listing + /// + /// + /// Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of ListingResult + ApiResponse CreateListingWithHttpInfo(string chainName, CreateListingRequestBody createListingRequestBody); + /// + /// Retrieve fulfillment data for orders + /// + /// + /// Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// FulfillmentData200Response + FulfillmentData200Response FulfillmentData(string chainName, List fulfillmentDataRequest); + + /// + /// Retrieve fulfillment data for orders + /// + /// + /// Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of FulfillmentData200Response + ApiResponse FulfillmentDataWithHttpInfo(string chainName, List fulfillmentDataRequest); + /// + /// Get a single bid by ID + /// + /// + /// Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// BidResult + BidResult GetBid(string chainName, Guid bidId); + + /// + /// Get a single bid by ID + /// + /// + /// Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// ApiResponse of BidResult + ApiResponse GetBidWithHttpInfo(string chainName, Guid bidId); + /// + /// Get a single collection bid by ID + /// + /// + /// Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// CollectionBidResult + CollectionBidResult GetCollectionBid(string chainName, Guid collectionBidId); + + /// + /// Get a single collection bid by ID + /// + /// + /// Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// ApiResponse of CollectionBidResult + ApiResponse GetCollectionBidWithHttpInfo(string chainName, Guid collectionBidId); + /// + /// Get a single listing by ID + /// + /// + /// Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// ListingResult + ListingResult GetListing(string chainName, Guid listingId); + + /// + /// Get a single listing by ID + /// + /// + /// Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// ApiResponse of ListingResult + ApiResponse GetListingWithHttpInfo(string chainName, Guid listingId); + /// + /// Get a single trade by ID + /// + /// + /// Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// TradeResult + TradeResult GetTrade(string chainName, Guid tradeId); + + /// + /// Get a single trade by ID + /// + /// + /// Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// ApiResponse of TradeResult + ApiResponse GetTradeWithHttpInfo(string chainName, Guid tradeId); + /// + /// List all bids + /// + /// + /// List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListBidsResult + ListBidsResult ListBids(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + + /// + /// List all bids + /// + /// + /// List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListBidsResult + ApiResponse ListBidsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + /// + /// List all collection bids + /// + /// + /// List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListCollectionBidsResult + ListCollectionBidsResult ListCollectionBids(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + + /// + /// List all collection bids + /// + /// + /// List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListCollectionBidsResult + ApiResponse ListCollectionBidsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + /// + /// List all listings + /// + /// + /// List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListListingsResult + ListListingsResult ListListings(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + + /// + /// List all listings + /// + /// + /// List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListListingsResult + ApiResponse ListListingsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + /// + /// List all trades + /// + /// + /// List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListTradeResult + ListTradeResult ListTrades(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + + /// + /// List all trades + /// + /// + /// List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListTradeResult + ApiResponse ListTradesWithHttpInfo(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOrdersApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Cancel one or more orders + /// + /// + /// Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of CancelOrdersResult + System.Threading.Tasks.Task CancelOrdersAsync(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Cancel one or more orders + /// + /// + /// Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CancelOrdersResult) + System.Threading.Tasks.Task> CancelOrdersWithHttpInfoAsync(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a bid + /// + /// + /// Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of BidResult + System.Threading.Tasks.Task CreateBidAsync(string chainName, CreateBidRequestBody createBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a bid + /// + /// + /// Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BidResult) + System.Threading.Tasks.Task> CreateBidWithHttpInfoAsync(string chainName, CreateBidRequestBody createBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a collection bid + /// + /// + /// Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of CollectionBidResult + System.Threading.Tasks.Task CreateCollectionBidAsync(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a collection bid + /// + /// + /// Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CollectionBidResult) + System.Threading.Tasks.Task> CreateCollectionBidWithHttpInfoAsync(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a listing + /// + /// + /// Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ListingResult + System.Threading.Tasks.Task CreateListingAsync(string chainName, CreateListingRequestBody createListingRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a listing + /// + /// + /// Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListingResult) + System.Threading.Tasks.Task> CreateListingWithHttpInfoAsync(string chainName, CreateListingRequestBody createListingRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Retrieve fulfillment data for orders + /// + /// + /// Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of FulfillmentData200Response + System.Threading.Tasks.Task FulfillmentDataAsync(string chainName, List fulfillmentDataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Retrieve fulfillment data for orders + /// + /// + /// Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FulfillmentData200Response) + System.Threading.Tasks.Task> FulfillmentDataWithHttpInfoAsync(string chainName, List fulfillmentDataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a single bid by ID + /// + /// + /// Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// Cancellation Token to cancel the request. + /// Task of BidResult + System.Threading.Tasks.Task GetBidAsync(string chainName, Guid bidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single bid by ID + /// + /// + /// Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BidResult) + System.Threading.Tasks.Task> GetBidWithHttpInfoAsync(string chainName, Guid bidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a single collection bid by ID + /// + /// + /// Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// Cancellation Token to cancel the request. + /// Task of CollectionBidResult + System.Threading.Tasks.Task GetCollectionBidAsync(string chainName, Guid collectionBidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single collection bid by ID + /// + /// + /// Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CollectionBidResult) + System.Threading.Tasks.Task> GetCollectionBidWithHttpInfoAsync(string chainName, Guid collectionBidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a single listing by ID + /// + /// + /// Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// Cancellation Token to cancel the request. + /// Task of ListingResult + System.Threading.Tasks.Task GetListingAsync(string chainName, Guid listingId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single listing by ID + /// + /// + /// Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListingResult) + System.Threading.Tasks.Task> GetListingWithHttpInfoAsync(string chainName, Guid listingId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a single trade by ID + /// + /// + /// Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// Cancellation Token to cancel the request. + /// Task of TradeResult + System.Threading.Tasks.Task GetTradeAsync(string chainName, Guid tradeId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single trade by ID + /// + /// + /// Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TradeResult) + System.Threading.Tasks.Task> GetTradeWithHttpInfoAsync(string chainName, Guid tradeId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all bids + /// + /// + /// List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListBidsResult + System.Threading.Tasks.Task ListBidsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all bids + /// + /// + /// List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListBidsResult) + System.Threading.Tasks.Task> ListBidsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all collection bids + /// + /// + /// List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionBidsResult + System.Threading.Tasks.Task ListCollectionBidsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all collection bids + /// + /// + /// List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionBidsResult) + System.Threading.Tasks.Task> ListCollectionBidsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all listings + /// + /// + /// List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListListingsResult + System.Threading.Tasks.Task ListListingsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all listings + /// + /// + /// List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListListingsResult) + System.Threading.Tasks.Task> ListListingsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all trades + /// + /// + /// List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListTradeResult + System.Threading.Tasks.Task ListTradesAsync(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all trades + /// + /// + /// List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListTradeResult) + System.Threading.Tasks.Task> ListTradesWithHttpInfoAsync(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOrdersApi : IOrdersApiSync, IOrdersApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class OrdersApi : IDisposable, IOrdersApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public OrdersApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public OrdersApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public OrdersApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public OrdersApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Cancel one or more orders Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// CancelOrdersResult + public CancelOrdersResult CancelOrders(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody) + { + Immutable.Api.Client.ApiResponse localVarResponse = CancelOrdersWithHttpInfo(chainName, cancelOrdersRequestBody); + return localVarResponse.Data; + } + + /// + /// Cancel one or more orders Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CancelOrdersResult + public Immutable.Api.Client.ApiResponse CancelOrdersWithHttpInfo(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CancelOrders"); + + // verify the required parameter 'cancelOrdersRequestBody' is set + if (cancelOrdersRequestBody == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'cancelOrdersRequestBody' when calling OrdersApi->CancelOrders"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = cancelOrdersRequestBody; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/cancel", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CancelOrders", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Cancel one or more orders Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of CancelOrdersResult + public async System.Threading.Tasks.Task CancelOrdersAsync(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CancelOrdersWithHttpInfoAsync(chainName, cancelOrdersRequestBody, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Cancel one or more orders Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CancelOrdersResult) + public async System.Threading.Tasks.Task> CancelOrdersWithHttpInfoAsync(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CancelOrders"); + + // verify the required parameter 'cancelOrdersRequestBody' is set + if (cancelOrdersRequestBody == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'cancelOrdersRequestBody' when calling OrdersApi->CancelOrders"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = cancelOrdersRequestBody; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/cancel", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CancelOrders", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a bid Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// BidResult + public BidResult CreateBid(string chainName, CreateBidRequestBody createBidRequestBody) + { + Immutable.Api.Client.ApiResponse localVarResponse = CreateBidWithHttpInfo(chainName, createBidRequestBody); + return localVarResponse.Data; + } + + /// + /// Create a bid Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of BidResult + public Immutable.Api.Client.ApiResponse CreateBidWithHttpInfo(string chainName, CreateBidRequestBody createBidRequestBody) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateBid"); + + // verify the required parameter 'createBidRequestBody' is set + if (createBidRequestBody == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'createBidRequestBody' when calling OrdersApi->CreateBid"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createBidRequestBody; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/bids", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a bid Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of BidResult + public async System.Threading.Tasks.Task CreateBidAsync(string chainName, CreateBidRequestBody createBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CreateBidWithHttpInfoAsync(chainName, createBidRequestBody, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Create a bid Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BidResult) + public async System.Threading.Tasks.Task> CreateBidWithHttpInfoAsync(string chainName, CreateBidRequestBody createBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateBid"); + + // verify the required parameter 'createBidRequestBody' is set + if (createBidRequestBody == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'createBidRequestBody' when calling OrdersApi->CreateBid"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createBidRequestBody; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/bids", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a collection bid Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// CollectionBidResult + public CollectionBidResult CreateCollectionBid(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody) + { + Immutable.Api.Client.ApiResponse localVarResponse = CreateCollectionBidWithHttpInfo(chainName, createCollectionBidRequestBody); + return localVarResponse.Data; + } + + /// + /// Create a collection bid Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CollectionBidResult + public Immutable.Api.Client.ApiResponse CreateCollectionBidWithHttpInfo(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateCollectionBid"); + + // verify the required parameter 'createCollectionBidRequestBody' is set + if (createCollectionBidRequestBody == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'createCollectionBidRequestBody' when calling OrdersApi->CreateCollectionBid"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createCollectionBidRequestBody; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/collection-bids", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateCollectionBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a collection bid Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of CollectionBidResult + public async System.Threading.Tasks.Task CreateCollectionBidAsync(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CreateCollectionBidWithHttpInfoAsync(chainName, createCollectionBidRequestBody, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Create a collection bid Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CollectionBidResult) + public async System.Threading.Tasks.Task> CreateCollectionBidWithHttpInfoAsync(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateCollectionBid"); + + // verify the required parameter 'createCollectionBidRequestBody' is set + if (createCollectionBidRequestBody == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'createCollectionBidRequestBody' when calling OrdersApi->CreateCollectionBid"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createCollectionBidRequestBody; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/collection-bids", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateCollectionBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a listing Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// ListingResult + public ListingResult CreateListing(string chainName, CreateListingRequestBody createListingRequestBody) + { + Immutable.Api.Client.ApiResponse localVarResponse = CreateListingWithHttpInfo(chainName, createListingRequestBody); + return localVarResponse.Data; + } + + /// + /// Create a listing Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of ListingResult + public Immutable.Api.Client.ApiResponse CreateListingWithHttpInfo(string chainName, CreateListingRequestBody createListingRequestBody) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateListing"); + + // verify the required parameter 'createListingRequestBody' is set + if (createListingRequestBody == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'createListingRequestBody' when calling OrdersApi->CreateListing"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createListingRequestBody; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/listings", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a listing Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ListingResult + public async System.Threading.Tasks.Task CreateListingAsync(string chainName, CreateListingRequestBody createListingRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CreateListingWithHttpInfoAsync(chainName, createListingRequestBody, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Create a listing Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListingResult) + public async System.Threading.Tasks.Task> CreateListingWithHttpInfoAsync(string chainName, CreateListingRequestBody createListingRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateListing"); + + // verify the required parameter 'createListingRequestBody' is set + if (createListingRequestBody == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'createListingRequestBody' when calling OrdersApi->CreateListing"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createListingRequestBody; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/listings", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Retrieve fulfillment data for orders Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// FulfillmentData200Response + public FulfillmentData200Response FulfillmentData(string chainName, List fulfillmentDataRequest) + { + Immutable.Api.Client.ApiResponse localVarResponse = FulfillmentDataWithHttpInfo(chainName, fulfillmentDataRequest); + return localVarResponse.Data; + } + + /// + /// Retrieve fulfillment data for orders Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of FulfillmentData200Response + public Immutable.Api.Client.ApiResponse FulfillmentDataWithHttpInfo(string chainName, List fulfillmentDataRequest) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->FulfillmentData"); + + // verify the required parameter 'fulfillmentDataRequest' is set + if (fulfillmentDataRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'fulfillmentDataRequest' when calling OrdersApi->FulfillmentData"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = fulfillmentDataRequest; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/fulfillment-data", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("FulfillmentData", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Retrieve fulfillment data for orders Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of FulfillmentData200Response + public async System.Threading.Tasks.Task FulfillmentDataAsync(string chainName, List fulfillmentDataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = FulfillmentDataWithHttpInfoAsync(chainName, fulfillmentDataRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Retrieve fulfillment data for orders Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FulfillmentData200Response) + public async System.Threading.Tasks.Task> FulfillmentDataWithHttpInfoAsync(string chainName, List fulfillmentDataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->FulfillmentData"); + + // verify the required parameter 'fulfillmentDataRequest' is set + if (fulfillmentDataRequest == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'fulfillmentDataRequest' when calling OrdersApi->FulfillmentData"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = fulfillmentDataRequest; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/fulfillment-data", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("FulfillmentData", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single bid by ID Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// BidResult + public BidResult GetBid(string chainName, Guid bidId) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetBidWithHttpInfo(chainName, bidId); + return localVarResponse.Data; + } + + /// + /// Get a single bid by ID Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// ApiResponse of BidResult + public Immutable.Api.Client.ApiResponse GetBidWithHttpInfo(string chainName, Guid bidId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetBid"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("bid_id", Immutable.Api.Client.ClientUtils.ParameterToString(bidId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/bids/{bid_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single bid by ID Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// Cancellation Token to cancel the request. + /// Task of BidResult + public async System.Threading.Tasks.Task GetBidAsync(string chainName, Guid bidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetBidWithHttpInfoAsync(chainName, bidId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single bid by ID Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BidResult) + public async System.Threading.Tasks.Task> GetBidWithHttpInfoAsync(string chainName, Guid bidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetBid"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("bid_id", Immutable.Api.Client.ClientUtils.ParameterToString(bidId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/bids/{bid_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single collection bid by ID Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// CollectionBidResult + public CollectionBidResult GetCollectionBid(string chainName, Guid collectionBidId) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetCollectionBidWithHttpInfo(chainName, collectionBidId); + return localVarResponse.Data; + } + + /// + /// Get a single collection bid by ID Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// ApiResponse of CollectionBidResult + public Immutable.Api.Client.ApiResponse GetCollectionBidWithHttpInfo(string chainName, Guid collectionBidId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetCollectionBid"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("collection_bid_id", Immutable.Api.Client.ClientUtils.ParameterToString(collectionBidId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCollectionBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single collection bid by ID Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// Cancellation Token to cancel the request. + /// Task of CollectionBidResult + public async System.Threading.Tasks.Task GetCollectionBidAsync(string chainName, Guid collectionBidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetCollectionBidWithHttpInfoAsync(chainName, collectionBidId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single collection bid by ID Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CollectionBidResult) + public async System.Threading.Tasks.Task> GetCollectionBidWithHttpInfoAsync(string chainName, Guid collectionBidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetCollectionBid"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("collection_bid_id", Immutable.Api.Client.ClientUtils.ParameterToString(collectionBidId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCollectionBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single listing by ID Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// ListingResult + public ListingResult GetListing(string chainName, Guid listingId) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetListingWithHttpInfo(chainName, listingId); + return localVarResponse.Data; + } + + /// + /// Get a single listing by ID Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// ApiResponse of ListingResult + public Immutable.Api.Client.ApiResponse GetListingWithHttpInfo(string chainName, Guid listingId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetListing"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("listing_id", Immutable.Api.Client.ClientUtils.ParameterToString(listingId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/listings/{listing_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single listing by ID Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// Cancellation Token to cancel the request. + /// Task of ListingResult + public async System.Threading.Tasks.Task GetListingAsync(string chainName, Guid listingId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetListingWithHttpInfoAsync(chainName, listingId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single listing by ID Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListingResult) + public async System.Threading.Tasks.Task> GetListingWithHttpInfoAsync(string chainName, Guid listingId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetListing"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("listing_id", Immutable.Api.Client.ClientUtils.ParameterToString(listingId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/listings/{listing_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single trade by ID Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// TradeResult + public TradeResult GetTrade(string chainName, Guid tradeId) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetTradeWithHttpInfo(chainName, tradeId); + return localVarResponse.Data; + } + + /// + /// Get a single trade by ID Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// ApiResponse of TradeResult + public Immutable.Api.Client.ApiResponse GetTradeWithHttpInfo(string chainName, Guid tradeId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetTrade"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("trade_id", Immutable.Api.Client.ClientUtils.ParameterToString(tradeId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/trades/{trade_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTrade", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single trade by ID Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// Cancellation Token to cancel the request. + /// Task of TradeResult + public async System.Threading.Tasks.Task GetTradeAsync(string chainName, Guid tradeId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetTradeWithHttpInfoAsync(chainName, tradeId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single trade by ID Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TradeResult) + public async System.Threading.Tasks.Task> GetTradeWithHttpInfoAsync(string chainName, Guid tradeId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetTrade"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("trade_id", Immutable.Api.Client.ClientUtils.ParameterToString(tradeId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/trades/{trade_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTrade", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all bids List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListBidsResult + public ListBidsResult ListBids(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListBidsWithHttpInfo(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, buyItemMetadataId, buyItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + return localVarResponse.Data; + } + + /// + /// List all bids List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListBidsResult + public Immutable.Api.Client.ApiResponse ListBidsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListBids"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (buyItemMetadataId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_metadata_id", buyItemMetadataId)); + } + if (buyItemTokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_token_id", buyItemTokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/bids", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListBids", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all bids List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListBidsResult + public async System.Threading.Tasks.Task ListBidsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListBidsWithHttpInfoAsync(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, buyItemMetadataId, buyItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all bids List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListBidsResult) + public async System.Threading.Tasks.Task> ListBidsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListBids"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (buyItemMetadataId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_metadata_id", buyItemMetadataId)); + } + if (buyItemTokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_token_id", buyItemTokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/bids", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListBids", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all collection bids List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListCollectionBidsResult + public ListCollectionBidsResult ListCollectionBids(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListCollectionBidsWithHttpInfo(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + return localVarResponse.Data; + } + + /// + /// List all collection bids List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListCollectionBidsResult + public Immutable.Api.Client.ApiResponse ListCollectionBidsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListCollectionBids"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/collection-bids", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollectionBids", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all collection bids List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionBidsResult + public async System.Threading.Tasks.Task ListCollectionBidsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListCollectionBidsWithHttpInfoAsync(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all collection bids List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionBidsResult) + public async System.Threading.Tasks.Task> ListCollectionBidsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListCollectionBids"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/collection-bids", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollectionBids", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all listings List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListListingsResult + public ListListingsResult ListListings(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListListingsWithHttpInfo(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + return localVarResponse.Data; + } + + /// + /// List all listings List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListListingsResult + public Immutable.Api.Client.ApiResponse ListListingsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListListings"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (buyItemType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_type", buyItemType)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (sellItemMetadataId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_metadata_id", sellItemMetadataId)); + } + if (sellItemTokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_token_id", sellItemTokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/listings", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListListings", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all listings List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListListingsResult + public async System.Threading.Tasks.Task ListListingsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListListingsWithHttpInfoAsync(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all listings List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListListingsResult) + public async System.Threading.Tasks.Task> ListListingsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListListings"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (buyItemType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_type", buyItemType)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (sellItemMetadataId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_metadata_id", sellItemMetadataId)); + } + if (sellItemTokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_token_id", sellItemTokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/listings", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListListings", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all trades List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListTradeResult + public ListTradeResult ListTrades(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListTradesWithHttpInfo(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor); + return localVarResponse.Data; + } + + /// + /// List all trades List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListTradeResult + public Immutable.Api.Client.ApiResponse ListTradesWithHttpInfo(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListTrades"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (fromIndexedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_indexed_at", fromIndexedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/trades", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListTrades", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all trades List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListTradeResult + public async System.Threading.Tasks.Task ListTradesAsync(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListTradesWithHttpInfoAsync(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all trades List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListTradeResult) + public async System.Threading.Tasks.Task> ListTradesWithHttpInfoAsync(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListTrades"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (fromIndexedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_indexed_at", fromIndexedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/trades", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListTrades", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/PassportApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/PassportApi.cs new file mode 100644 index 00000000..a68719f2 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/PassportApi.cs @@ -0,0 +1,392 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get Ethereum linked addresses for a user + /// + /// + /// This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// GetLinkedAddressesRes + [Obsolete] + GetLinkedAddressesRes GetLinkedAddresses(string userId, string chainName); + + /// + /// Get Ethereum linked addresses for a user + /// + /// + /// This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// ApiResponse of GetLinkedAddressesRes + [Obsolete] + ApiResponse GetLinkedAddressesWithHttpInfo(string userId, string chainName); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get Ethereum linked addresses for a user + /// + /// + /// This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// Cancellation Token to cancel the request. + /// Task of GetLinkedAddressesRes + [Obsolete] + System.Threading.Tasks.Task GetLinkedAddressesAsync(string userId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get Ethereum linked addresses for a user + /// + /// + /// This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetLinkedAddressesRes) + [Obsolete] + System.Threading.Tasks.Task> GetLinkedAddressesWithHttpInfoAsync(string userId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportApi : IPassportApiSync, IPassportApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PassportApi : IDisposable, IPassportApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public PassportApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public PassportApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public PassportApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public PassportApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get Ethereum linked addresses for a user This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// GetLinkedAddressesRes + [Obsolete] + public GetLinkedAddressesRes GetLinkedAddresses(string userId, string chainName) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetLinkedAddressesWithHttpInfo(userId, chainName); + return localVarResponse.Data; + } + + /// + /// Get Ethereum linked addresses for a user This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// ApiResponse of GetLinkedAddressesRes + [Obsolete] + public Immutable.Api.Client.ApiResponse GetLinkedAddressesWithHttpInfo(string userId, string chainName) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'userId' when calling PassportApi->GetLinkedAddresses"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling PassportApi->GetLinkedAddresses"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("user_id", Immutable.Api.Client.ClientUtils.ParameterToString(userId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLinkedAddresses", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get Ethereum linked addresses for a user This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// Cancellation Token to cancel the request. + /// Task of GetLinkedAddressesRes + [Obsolete] + public async System.Threading.Tasks.Task GetLinkedAddressesAsync(string userId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetLinkedAddressesWithHttpInfoAsync(userId, chainName, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get Ethereum linked addresses for a user This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetLinkedAddressesRes) + [Obsolete] + public async System.Threading.Tasks.Task> GetLinkedAddressesWithHttpInfoAsync(string userId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'userId' when calling PassportApi->GetLinkedAddresses"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling PassportApi->GetLinkedAddresses"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("user_id", Immutable.Api.Client.ClientUtils.ParameterToString(userId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLinkedAddresses", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/PassportProfileApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/PassportProfileApi.cs new file mode 100644 index 00000000..fd9fd2a6 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/PassportProfileApi.cs @@ -0,0 +1,524 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportProfileApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get all info for a Passport user + /// + /// + /// Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// UserInfo + UserInfo GetUserInfo(); + + /// + /// Get all info for a Passport user + /// + /// + /// Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// ApiResponse of UserInfo + ApiResponse GetUserInfoWithHttpInfo(); + /// + /// Link wallet v2 + /// + /// + /// Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Wallet + Wallet LinkWalletV2(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?)); + + /// + /// Link wallet v2 + /// + /// + /// Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of Wallet + ApiResponse LinkWalletV2WithHttpInfo(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportProfileApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get all info for a Passport user + /// + /// + /// Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of UserInfo + System.Threading.Tasks.Task GetUserInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get all info for a Passport user + /// + /// + /// Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UserInfo) + System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Link wallet v2 + /// + /// + /// Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of Wallet + System.Threading.Tasks.Task LinkWalletV2Async(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Link wallet v2 + /// + /// + /// Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Wallet) + System.Threading.Tasks.Task> LinkWalletV2WithHttpInfoAsync(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportProfileApi : IPassportProfileApiSync, IPassportProfileApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PassportProfileApi : IDisposable, IPassportProfileApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public PassportProfileApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public PassportProfileApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public PassportProfileApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public PassportProfileApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get all info for a Passport user Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// UserInfo + public UserInfo GetUserInfo() + { + Immutable.Api.Client.ApiResponse localVarResponse = GetUserInfoWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get all info for a Passport user Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// ApiResponse of UserInfo + public Immutable.Api.Client.ApiResponse GetUserInfoWithHttpInfo() + { + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/passport-profile/v1/user/info", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get all info for a Passport user Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of UserInfo + public async System.Threading.Tasks.Task GetUserInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetUserInfoWithHttpInfoAsync(cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get all info for a Passport user Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UserInfo) + public async System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/passport-profile/v1/user/info", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Link wallet v2 Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Wallet + public Wallet LinkWalletV2(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = LinkWalletV2WithHttpInfo(linkWalletV2Request); + return localVarResponse.Data; + } + + /// + /// Link wallet v2 Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of Wallet + public Immutable.Api.Client.ApiResponse LinkWalletV2WithHttpInfo(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?)) + { + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = linkWalletV2Request; + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/passport-profile/v2/linked-wallets", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LinkWalletV2", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Link wallet v2 Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of Wallet + public async System.Threading.Tasks.Task LinkWalletV2Async(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = LinkWalletV2WithHttpInfoAsync(linkWalletV2Request, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Link wallet v2 Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Wallet) + public async System.Threading.Tasks.Task> LinkWalletV2WithHttpInfoAsync(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = linkWalletV2Request; + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/passport-profile/v2/linked-wallets", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LinkWalletV2", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/PricingApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/PricingApi.cs new file mode 100644 index 00000000..f8629ae5 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/PricingApi.cs @@ -0,0 +1,628 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPricingApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Experimental: Get pricing data for a list of token ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// QuotesForNFTsResult + QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); + + /// + /// Experimental: Get pricing data for a list of token ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of QuotesForNFTsResult + ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); + /// + /// Experimental: Get pricing data for a list of stack ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// QuotesForStacksResult + QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)); + + /// + /// Experimental: Get pricing data for a list of stack ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of QuotesForStacksResult + ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPricingApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Experimental: Get pricing data for a list of token ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of QuotesForNFTsResult + System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Experimental: Get pricing data for a list of token ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (QuotesForNFTsResult) + System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Experimental: Get pricing data for a list of stack ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of QuotesForStacksResult + System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Experimental: Get pricing data for a list of stack ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (QuotesForStacksResult) + System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPricingApi : IPricingApiSync, IPricingApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PricingApi : IDisposable, IPricingApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public PricingApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public PricingApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public PricingApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public PricingApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// QuotesForNFTsResult + public QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); + return localVarResponse.Data; + } + + /// + /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of QuotesForNFTsResult + public Immutable.Api.Client.ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling PricingApi->QuotesForNFTs"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling PricingApi->QuotesForNFTs"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'tokenId' when calling PricingApi->QuotesForNFTs"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("QuotesForNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of QuotesForNFTsResult + public async System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = QuotesForNFTsWithHttpInfoAsync(chainName, contractAddress, tokenId, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (QuotesForNFTsResult) + public async System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling PricingApi->QuotesForNFTs"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling PricingApi->QuotesForNFTs"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'tokenId' when calling PricingApi->QuotesForNFTs"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("QuotesForNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// QuotesForStacksResult + public QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); + return localVarResponse.Data; + } + + /// + /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of QuotesForStacksResult + public Immutable.Api.Client.ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling PricingApi->QuotesForStacks"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling PricingApi->QuotesForStacks"); + + // verify the required parameter 'stackId' is set + if (stackId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'stackId' when calling PricingApi->QuotesForStacks"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("QuotesForStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of QuotesForStacksResult + public async System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = QuotesForStacksWithHttpInfoAsync(chainName, contractAddress, stackId, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (QuotesForStacksResult) + public async System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling PricingApi->QuotesForStacks"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling PricingApi->QuotesForStacks"); + + // verify the required parameter 'stackId' is set + if (stackId == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'stackId' when calling PricingApi->QuotesForStacks"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("QuotesForStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/StacksApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/StacksApi.cs new file mode 100644 index 00000000..f47fc896 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/StacksApi.cs @@ -0,0 +1,768 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStacksApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Experimental: Search NFTs + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// SearchNFTsResult + SearchNFTsResult SearchNFTs(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)); + + /// + /// Experimental: Search NFTs + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of SearchNFTsResult + ApiResponse SearchNFTsWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)); + /// + /// Experimental: Search NFT stacks + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// SearchStacksResult + SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); + + /// + /// Experimental: Search NFT stacks + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of SearchStacksResult + ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStacksApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Experimental: Search NFTs + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of SearchNFTsResult + System.Threading.Tasks.Task SearchNFTsAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Experimental: Search NFTs + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SearchNFTsResult) + System.Threading.Tasks.Task> SearchNFTsWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Experimental: Search NFT stacks + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of SearchStacksResult + System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Experimental: Search NFT stacks + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SearchStacksResult) + System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStacksApi : IStacksApiSync, IStacksApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class StacksApi : IDisposable, IStacksApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public StacksApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public StacksApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public StacksApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public StacksApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// SearchNFTsResult + public SearchNFTsResult SearchNFTs(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = SearchNFTsWithHttpInfo(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor); + return localVarResponse.Data; + } + + /// + /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of SearchNFTsResult + public Immutable.Api.Client.ApiResponse SearchNFTsWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchNFTs"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchNFTs"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (stackId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + } + if (onlyIncludeOwnerListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/search/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of SearchNFTsResult + public async System.Threading.Tasks.Task SearchNFTsAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = SearchNFTsWithHttpInfoAsync(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SearchNFTsResult) + public async System.Threading.Tasks.Task> SearchNFTsWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchNFTs"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchNFTs"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (stackId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + } + if (onlyIncludeOwnerListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/search/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// SearchStacksResult + public SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor); + return localVarResponse.Data; + } + + /// + /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of SearchStacksResult + public Immutable.Api.Client.ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchStacks"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchStacks"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (onlyIncludeOwnerListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } + if (onlyIfHasActiveListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "only_if_has_active_listings", onlyIfHasActiveListings)); + } + if (trait != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "trait", trait)); + } + if (keyword != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "keyword", keyword)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of SearchStacksResult + public async System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = SearchStacksWithHttpInfoAsync(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SearchStacksResult) + public async System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchStacks"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchStacks"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (onlyIncludeOwnerListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } + if (onlyIfHasActiveListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "only_if_has_active_listings", onlyIfHasActiveListings)); + } + if (trait != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "trait", trait)); + } + if (keyword != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "keyword", keyword)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/TokensApi.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/TokensApi.cs new file mode 100644 index 00000000..0ae539d8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Api/TokensApi.cs @@ -0,0 +1,622 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.Api.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITokensApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get single ERC20 token + /// + /// + /// Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// GetTokenResult + GetTokenResult GetERC20Token(string contractAddress, string chainName); + + /// + /// Get single ERC20 token + /// + /// + /// Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// ApiResponse of GetTokenResult + ApiResponse GetERC20TokenWithHttpInfo(string contractAddress, string chainName); + /// + /// List ERC20 tokens + /// + /// + /// List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListTokensResult + ListTokensResult ListERC20Tokens(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List ERC20 tokens + /// + /// + /// List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListTokensResult + ApiResponse ListERC20TokensWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITokensApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get single ERC20 token + /// + /// + /// Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetTokenResult + System.Threading.Tasks.Task GetERC20TokenAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get single ERC20 token + /// + /// + /// Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetTokenResult) + System.Threading.Tasks.Task> GetERC20TokenWithHttpInfoAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List ERC20 tokens + /// + /// + /// List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListTokensResult + System.Threading.Tasks.Task ListERC20TokensAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List ERC20 tokens + /// + /// + /// List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListTokensResult) + System.Threading.Tasks.Task> ListERC20TokensWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITokensApi : ITokensApiSync, ITokensApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TokensApi : IDisposable, ITokensApi + { + private Immutable.Api.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public TokensApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public TokensApi(string basePath) + { + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + new Immutable.Api.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public TokensApi(Immutable.Api.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.Client.Configuration.MergeConfigurations( + Immutable.Api.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public TokensApi(Immutable.Api.Client.ISynchronousClient client, Immutable.Api.Client.IAsynchronousClient asyncClient, Immutable.Api.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get single ERC20 token Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// GetTokenResult + public GetTokenResult GetERC20Token(string contractAddress, string chainName) + { + Immutable.Api.Client.ApiResponse localVarResponse = GetERC20TokenWithHttpInfo(contractAddress, chainName); + return localVarResponse.Data; + } + + /// + /// Get single ERC20 token Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// ApiResponse of GetTokenResult + public Immutable.Api.Client.ApiResponse GetERC20TokenWithHttpInfo(string contractAddress, string chainName) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling TokensApi->GetERC20Token"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling TokensApi->GetERC20Token"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/tokens/{contract_address}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetERC20Token", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get single ERC20 token Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetTokenResult + public async System.Threading.Tasks.Task GetERC20TokenAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetERC20TokenWithHttpInfoAsync(contractAddress, chainName, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get single ERC20 token Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetTokenResult) + public async System.Threading.Tasks.Task> GetERC20TokenWithHttpInfoAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling TokensApi->GetERC20Token"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling TokensApi->GetERC20Token"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/tokens/{contract_address}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetERC20Token", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List ERC20 tokens List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListTokensResult + public ListTokensResult ListERC20Tokens(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.Client.ApiResponse localVarResponse = ListERC20TokensWithHttpInfo(chainName, fromUpdatedAt, verificationStatus, isCanonical, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List ERC20 tokens List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListTokensResult + public Immutable.Api.Client.ApiResponse ListERC20TokensWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling TokensApi->ListERC20Tokens"); + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (verificationStatus != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "verification_status", verificationStatus)); + } + if (isCanonical != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "is_canonical", isCanonical)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/tokens", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListERC20Tokens", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List ERC20 tokens List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListTokensResult + public async System.Threading.Tasks.Task ListERC20TokensAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListERC20TokensWithHttpInfoAsync(chainName, fromUpdatedAt, verificationStatus, isCanonical, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List ERC20 tokens List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListTokensResult) + public async System.Threading.Tasks.Task> ListERC20TokensWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.Client.ApiException(400, "Missing required parameter 'chainName' when calling TokensApi->ListERC20Tokens"); + + + Immutable.Api.Client.RequestOptions localVarRequestOptions = new Immutable.Api.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (verificationStatus != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("multi", "verification_status", verificationStatus)); + } + if (isCanonical != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "is_canonical", isCanonical)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/tokens", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListERC20Tokens", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ApiClient.cs similarity index 96% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ApiClient.cs index 5d3796e9..c5425f46 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ApiClient.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -31,7 +31,7 @@ using UnityEngine.Networking; using UnityEngine; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// To Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. @@ -71,10 +71,10 @@ public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfi /// A JSON string. public string Serialize(object obj) { - if (obj != null && obj is Immutable.Search.Model.AbstractOpenAPISchema) + if (obj != null && obj is Immutable.Api.Model.AbstractOpenAPISchema) { // the object to be serialized is an oneOf/anyOf schema - return ((Immutable.Search.Model.AbstractOpenAPISchema)obj).ToJson(); + return ((Immutable.Api.Model.AbstractOpenAPISchema)obj).ToJson(); } else { @@ -84,7 +84,7 @@ public string Serialize(object obj) public T Deserialize(UnityWebRequest request) { - var result = (T)Deserialize(request, typeof(T)); + var result = (T) Deserialize(request, typeof(T)); return result; } @@ -148,7 +148,7 @@ internal object Deserialize(UnityWebRequest request, Type type) throw new ApiException((int)request.responseCode, request.error, text); } } - + if (type != typeof(global::System.Object) && request.responseCode >= 200 && request.responseCode < 300) { throw new UnexpectedResponseException(request, type); @@ -200,7 +200,7 @@ public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousC /// Initializes a new instance of the , defaulting to the global configurations' base url. /// public ApiClient() : - this(Immutable.Search.Client.GlobalConfiguration.Instance.BasePath) + this(Immutable.Api.Client.GlobalConfiguration.Instance.BasePath) { } @@ -333,16 +333,16 @@ private UnityWebRequest NewRequest( if (options.Cookies != null && options.Cookies.Count > 0) { -#if UNITY_WEBGL + #if UNITY_WEBGL throw new System.InvalidOperationException("UnityWebRequest does not support setting cookies in WebGL"); -#else + #else if (options.Cookies.Count != 1) { UnityEngine.Debug.LogError("Only one cookie supported, ignoring others"); } request.SetRequestHeader("Cookie", options.Cookies[0].ToString()); -#endif + #endif } return request; @@ -354,7 +354,7 @@ private UnityWebRequest NewRequest( private ApiResponse ToApiResponse(UnityWebRequest request, object responseData) { - T result = (T)responseData; + T result = (T) responseData; var transformed = new ApiResponse((HttpStatusCode)request.responseCode, new Multimap(), result, request.downloadHandler?.text ?? "") { @@ -418,7 +418,7 @@ private async Task> ExecAsync( { await tsc.Task; } - + if (request.result == UnityWebRequest.Result.ConnectionError || request.result == UnityWebRequest.Result.DataProcessingError) { @@ -428,13 +428,13 @@ private async Task> ExecAsync( object responseData = deserializer.Deserialize(request); // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(Immutable.Search.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + if (typeof(Immutable.Api.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { - responseData = (T)typeof(T).GetMethod("FromJson").Invoke(null, new object[] { new ByteArrayContent(request.downloadHandler.data) }); + responseData = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { new ByteArrayContent(request.downloadHandler.data) }); } else if (typeof(T).Name == "Stream") // for binary response { - responseData = (T)(object)new MemoryStream(request.downloadHandler.data); + responseData = (T) (object) new MemoryStream(request.downloadHandler.data); } InterceptResponse(request, path, options, configuration, ref responseData); diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiException.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ApiException.cs similarity index 90% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiException.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ApiException.cs index 5dc0539f..cbe1d1d0 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiException.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ApiException.cs @@ -1,17 +1,17 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// API Exception diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiResponse.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ApiResponse.cs similarity index 95% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiResponse.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ApiResponse.cs index 1e0c91af..e89dd8d1 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiResponse.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ApiResponse.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -13,7 +13,7 @@ using System.Collections.Generic; using System.Net; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// Provides a non-generic contract for the ApiResponse wrapper. diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ClientUtils.cs similarity index 95% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ClientUtils.cs index 159add8b..dba71fdd 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ClientUtils.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,7 +19,7 @@ using System.Text; using System.Text.RegularExpressions; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// Utility functions providing some benefit to API client consumers. @@ -58,15 +58,13 @@ public static Multimap ParameterToMultiMap(string collectionForm } else if (value is IDictionary dictionary) { - if (collectionFormat == "deepObject") - { + if(collectionFormat == "deepObject") { foreach (DictionaryEntry entry in dictionary) { parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); } } - else - { + else { foreach (DictionaryEntry entry in dictionary) { parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); @@ -105,8 +103,7 @@ public static string ParameterToString(object obj, IReadableConfiguration config return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is bool boolean) return boolean ? "true" : "false"; - if (obj is ICollection collection) - { + if (obj is ICollection collection) { List entries = new List(); foreach (var entry in collection) entries.Add(ParameterToString(entry, configuration)); @@ -226,7 +223,7 @@ private static bool HasEnumMemberAttrValue(object enumVal) var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); if (attr != null) return true; - return false; + return false; } /// diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/Configuration.cs similarity index 95% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/Configuration.cs index 92ba34d1..0f7e969e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/Configuration.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,7 +21,7 @@ using System.Net.Http; using System.Net.Security; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// Represents a set of configuration settings @@ -119,28 +119,16 @@ public Configuration() { Proxy = null; UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.0.0/csharp"); - BasePath = "https://api.immutable.com"; + BasePath = "https://api.sandbox.immutable.com"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); Servers = new List>() { - { - new Dictionary { - {"url", "https://api.immutable.com"}, - {"description", "Production"}, - } - }, { new Dictionary { {"url", "https://api.sandbox.immutable.com"}, - {"description", "Sandbox"}, - } - }, - { - new Dictionary { - {"url", "https://api.dev.immutable.com"}, - {"description", "Development"}, + {"description", "No description provided"}, } } }; @@ -160,7 +148,7 @@ public Configuration( IDictionary defaultHeaders, IDictionary apiKey, IDictionary apiKeyPrefix, - string basePath = "https://api.immutable.com") : this() + string basePath = "https://api.sandbox.immutable.com") : this() { if (string.IsNullOrWhiteSpace(basePath)) throw new ArgumentException("The provided basePath is invalid.", "basePath"); @@ -196,7 +184,7 @@ public Configuration( /// /// Gets or sets the base path for API access. /// - public virtual string BasePath + public virtual string BasePath { get { return _basePath; } set { _basePath = value; } @@ -534,7 +522,7 @@ private string GetServerUrl(IList> servers, return url; } - + /// /// Gets and Sets the RemoteCertificateValidationCallback /// @@ -549,10 +537,10 @@ private string GetServerUrl(IList> servers, /// public static string ToDebugReport() { - string report = "C# SDK (Immutable.Search) Debug Report:\n"; + string report = "C# SDK (Immutable.Api) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; - report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 1.0\n"; + report += " .NET Framework Version: " + System.Environment.Version + "\n"; + report += " Version of the API: 1.0.0\n"; report += " SDK Package Version: 1.0.0\n"; return report; diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ConnectionException.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ConnectionException.cs similarity index 73% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ConnectionException.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ConnectionException.cs index 358f3fa6..c93145c3 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ConnectionException.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ConnectionException.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -12,7 +12,7 @@ using System; using UnityEngine.Networking; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { public class ConnectionException : Exception { diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ExceptionFactory.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ExceptionFactory.cs similarity index 64% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ExceptionFactory.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ExceptionFactory.cs index 9f4fc2c1..36a5c55d 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ExceptionFactory.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ExceptionFactory.cs @@ -1,17 +1,17 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// A delegate to ExceptionFactory method diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/GlobalConfiguration.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/GlobalConfiguration.cs similarity index 88% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/GlobalConfiguration.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/GlobalConfiguration.cs index 4ca2f99a..4e0f65ee 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/GlobalConfiguration.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/GlobalConfiguration.cs @@ -1,17 +1,17 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System.Collections.Generic; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// provides a compile-time extension point for globally configuring diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IApiAccessor.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/IApiAccessor.cs similarity index 78% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IApiAccessor.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/IApiAccessor.cs index 53fabf14..71b4cfdf 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IApiAccessor.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/IApiAccessor.cs @@ -1,17 +1,17 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// Represents configuration aspects required to interact with the API endpoints. diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IAsynchronousClient.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/IAsynchronousClient.cs similarity index 96% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IAsynchronousClient.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/IAsynchronousClient.cs index 5a1193d2..f233de38 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IAsynchronousClient.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/IAsynchronousClient.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -12,7 +12,7 @@ using System; using System.Threading.Tasks; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// Contract for Asynchronous RESTful API interactions. diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IReadableConfiguration.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/IReadableConfiguration.cs similarity index 95% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IReadableConfiguration.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/IReadableConfiguration.cs index cc5a96fa..74a7588a 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/IReadableConfiguration.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/IReadableConfiguration.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -15,7 +15,7 @@ using System.Net.Security; using System.Security.Cryptography.X509Certificates; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// Represents a readable-only configuration contract. diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ISynchronousClient.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ISynchronousClient.cs similarity index 95% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ISynchronousClient.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ISynchronousClient.cs index 34aa406e..eeee0280 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ISynchronousClient.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/ISynchronousClient.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -12,7 +12,7 @@ using System; using System.IO; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// Contract for Synchronous RESTful API interactions. diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Multimap.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/Multimap.cs similarity index 97% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Multimap.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/Multimap.cs index ae2e8961..4f115e94 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Multimap.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/Multimap.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -13,7 +13,7 @@ using System.Collections; using System.Collections.Generic; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// A dictionary in which one key has many associated values. diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/OpenAPIDateConverter.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/OpenAPIDateConverter.cs similarity index 76% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/OpenAPIDateConverter.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/OpenAPIDateConverter.cs index 9bb002c2..2f56addc 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/OpenAPIDateConverter.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/OpenAPIDateConverter.cs @@ -1,16 +1,16 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using Newtonsoft.Json.Converters; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/RequestOptions.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/RequestOptions.cs similarity index 90% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/RequestOptions.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/RequestOptions.cs index a3bf5e90..e87df46c 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/RequestOptions.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/RequestOptions.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -14,7 +14,7 @@ using System.IO; using System.Net; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { /// /// A container for generalized request inputs. This type allows consumers to extend the request functionality diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/UnexpectedResponseException.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/UnexpectedResponseException.cs similarity index 80% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/UnexpectedResponseException.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/UnexpectedResponseException.cs index 08ca5e4c..67281567 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/UnexpectedResponseException.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/UnexpectedResponseException.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -12,7 +12,7 @@ using System; using UnityEngine.Networking; -namespace Immutable.Search.Client +namespace Immutable.Api.Client { // Thrown when a backend doesn't return an expected response based on the expected type // of the response data. diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/WebRequestPathBuilder.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/WebRequestPathBuilder.cs new file mode 100644 index 00000000..0398fb24 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Client/WebRequestPathBuilder.cs @@ -0,0 +1,54 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Collections.Generic; + +namespace Immutable.Api.Client +{ + /// + /// A URI builder + /// + class WebRequestPathBuilder + { + private string _baseUrl; + private string _path; + private string _query = "?"; + public WebRequestPathBuilder(string baseUrl, string path) + { + _baseUrl = baseUrl; + _path = path; + } + + public void AddPathParameters(Dictionary parameters) + { + foreach (var parameter in parameters) + { + _path = _path.Replace("{" + parameter.Key + "}", Uri.EscapeDataString(parameter.Value)); + } + } + + public void AddQueryParameters(Multimap parameters) + { + foreach (var parameter in parameters) + { + foreach (var value in parameter.Value) + { + _query = _query + parameter.Key + "=" + Uri.EscapeDataString(value) + "&"; + } + } + } + + public string GetFullUri() + { + return _baseUrl + _path + _query.Substring(0, _query.Length - 1); + } + } +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Immutable.Api.asmdef b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Immutable.Api.asmdef new file mode 100644 index 00000000..84d5361e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Immutable.Api.asmdef @@ -0,0 +1,7 @@ +{ + "name": "Immutable.Api", + "overrideReferences": true, + "precompiledReferences": [ + "Newtonsoft.Json.dll" + ] +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError400.cs similarity index 69% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError400.cs index 5302ac62..ec5f5353 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError400.cs @@ -1,91 +1,102 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// APIError400 + /// APIError400 /// [DataContract(Name = "APIError400")] - public class APIError400 + public partial class APIError400 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum VALIDATIONERROR for value: VALIDATION_ERROR + /// Enum VALIDATIONERROR for value: VALIDATION_ERROR /// [EnumMember(Value = "VALIDATION_ERROR")] VALIDATIONERROR = 1 } + + /// + /// Error Code + /// + /// Error Code + /// VALIDATION_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError400() - { - } - + protected APIError400() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError400(string message = default, string link = default, string traceId = default, - CodeEnum code = default, object details = default) + public APIError400(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError400 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError400 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError400 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError400 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// VALIDATION_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError400(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError400(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError400(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError400 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError401.cs similarity index 69% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError401.cs index 4bb91a1a..c268c58c 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError401.cs @@ -1,91 +1,102 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// APIError401 + /// APIError401 /// [DataContract(Name = "APIError401")] - public class APIError401 + public partial class APIError401 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum UNAUTHORISEDREQUEST for value: UNAUTHORISED_REQUEST + /// Enum UNAUTHORISEDREQUEST for value: UNAUTHORISED_REQUEST /// [EnumMember(Value = "UNAUTHORISED_REQUEST")] UNAUTHORISEDREQUEST = 1 } + + /// + /// Error Code + /// + /// Error Code + /// UNAUTHORISED_REQUEST + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError401() - { - } - + protected APIError401() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError401(string message = default, string link = default, string traceId = default, - CodeEnum code = default, object details = default) + public APIError401(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError401 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError401 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError401 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError401 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// UNAUTHORISED_REQUEST - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError401(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError401(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError401(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError401 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError403.cs similarity index 95% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError403.cs index 1b847c89..2e52e14a 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError403.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// APIError403 diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError404.cs similarity index 69% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError404.cs index 62f1a805..c9b06f29 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError404.cs @@ -1,91 +1,102 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// APIError404 + /// APIError404 /// [DataContract(Name = "APIError404")] - public class APIError404 + public partial class APIError404 { /// - /// Error Code + /// Error Code /// /// Error Code [JsonConverter(typeof(StringEnumConverter))] public enum CodeEnum { /// - /// Enum RESOURCENOTFOUND for value: RESOURCE_NOT_FOUND + /// Enum RESOURCENOTFOUND for value: RESOURCE_NOT_FOUND /// [EnumMember(Value = "RESOURCE_NOT_FOUND")] RESOURCENOTFOUND = 1 } + + /// + /// Error Code + /// + /// Error Code + /// RESOURCE_NOT_FOUND + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected APIError404() - { - } - + protected APIError404() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Error Message (required). /// Link to IMX documentation that can help resolve this error (required). /// Trace ID of the initial request (required). /// Error Code (required). /// Additional details to help resolve the error (required). - public APIError404(string message = default, string link = default, string traceId = default, - CodeEnum code = default, object details = default) + public APIError404(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) { // to ensure "message" is required (not null) if (message == null) + { throw new ArgumentNullException("message is a required property for APIError404 and cannot be null"); - Message = message; + } + this.Message = message; // to ensure "link" is required (not null) if (link == null) + { throw new ArgumentNullException("link is a required property for APIError404 and cannot be null"); - Link = link; + } + this.Link = link; // to ensure "traceId" is required (not null) if (traceId == null) + { throw new ArgumentNullException("traceId is a required property for APIError404 and cannot be null"); - TraceId = traceId; - Code = code; + } + this.TraceId = traceId; + this.Code = code; // to ensure "details" is required (not null) if (details == null) + { throw new ArgumentNullException("details is a required property for APIError404 and cannot be null"); - Details = details; + } + this.Details = details; } - - /// - /// Error Code - /// - /// Error Code - /// RESOURCE_NOT_FOUND - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Error Message + /// Error Message /// /// Error Message /// all fields must be provided @@ -93,7 +104,7 @@ public APIError404(string message = default, string link = default, string trace public string Message { get; set; } /// - /// Link to IMX documentation that can help resolve this error + /// Link to IMX documentation that can help resolve this error /// /// Link to IMX documentation that can help resolve this error /// https://docs.x.immutable.com/reference/#/ @@ -101,7 +112,7 @@ public APIError404(string message = default, string link = default, string trace public string Link { get; set; } /// - /// Trace ID of the initial request + /// Trace ID of the initial request /// /// Trace ID of the initial request /// e47634b79a5cd6894ddc9639ec4aad26 @@ -109,19 +120,19 @@ public APIError404(string message = default, string link = default, string trace public string TraceId { get; set; } /// - /// Additional details to help resolve the error + /// Additional details to help resolve the error /// /// Additional details to help resolve the error [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } + public Object Details { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class APIError404 {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Link: ").Append(Link).Append("\n"); @@ -133,12 +144,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError409.cs similarity index 95% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError409.cs index 6084ea16..2968b90e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError409.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// APIError409 diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError429.cs similarity index 95% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError429.cs index 0305d88a..ab943f0f 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError429.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// APIError429 diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError500.cs similarity index 95% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError500.cs index 155eee57..4e91f053 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError500.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// APIError500 diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError501.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError501.cs new file mode 100644 index 00000000..def6d704 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/APIError501.cs @@ -0,0 +1,157 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// APIError501 + /// + [DataContract(Name = "APIError501")] + public partial class APIError501 + { + /// + /// Error Code + /// + /// Error Code + [JsonConverter(typeof(StringEnumConverter))] + public enum CodeEnum + { + /// + /// Enum NOTIMPLEMENTEDERROR for value: NOT_IMPLEMENTED_ERROR + /// + [EnumMember(Value = "NOT_IMPLEMENTED_ERROR")] + NOTIMPLEMENTEDERROR = 1 + } + + + /// + /// Error Code + /// + /// Error Code + /// NOT_IMPLEMENTED_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected APIError501() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + /// Error Code (required). + /// Additional details to help resolve the error (required). + public APIError501(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for APIError501 and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for APIError501 and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for APIError501 and cannot be null"); + } + this.TraceId = traceId; + this.Code = code; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for APIError501 and cannot be null"); + } + this.Details = details; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Additional details to help resolve the error + /// + /// Additional details to help resolve the error + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public Object Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class APIError501 {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/AbstractOpenAPISchema.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/AbstractOpenAPISchema.cs similarity index 61% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/AbstractOpenAPISchema.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/AbstractOpenAPISchema.cs index f71ebc24..155edf1b 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/AbstractOpenAPISchema.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/AbstractOpenAPISchema.cs @@ -1,28 +1,29 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ +using System; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification + /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification /// - public abstract class AbstractOpenAPISchema + public abstract partial class AbstractOpenAPISchema { /// - /// Custom JSON serializer + /// Custom JSON serializer /// - public static readonly JsonSerializerSettings SerializerSettings = new() + static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings { // OpenAPI generated types generally hide default constructors. ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, @@ -37,9 +38,9 @@ public abstract class AbstractOpenAPISchema }; /// - /// Custom JSON serializer for objects with additional properties + /// Custom JSON serializer for objects with additional properties /// - public static readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new() + static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings { // OpenAPI generated types generally hide default constructors. ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, @@ -54,23 +55,23 @@ public abstract class AbstractOpenAPISchema }; /// - /// Gets or Sets the actual instance + /// Gets or Sets the actual instance /// - public abstract object ActualInstance { get; set; } + public abstract Object ActualInstance { get; set; } /// - /// Gets or Sets IsNullable to indicate whether the instance is nullable + /// Gets or Sets IsNullable to indicate whether the instance is nullable /// public bool IsNullable { get; protected set; } /// - /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` + /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` /// public string SchemaType { get; protected set; } /// - /// Converts the instance into JSON string. + /// Converts the instance into JSON string. /// public abstract string ToJson(); } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActiveOrderStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActiveOrderStatus.cs new file mode 100644 index 00000000..24d082ea --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActiveOrderStatus.cs @@ -0,0 +1,93 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ActiveOrderStatus + /// + [DataContract(Name = "ActiveOrderStatus")] + public partial class ActiveOrderStatus + { + /// + /// The order status that indicates an order can be fulfilled. + /// + /// The order status that indicates an order can be fulfilled. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum ACTIVE for value: ACTIVE + /// + [EnumMember(Value = "ACTIVE")] + ACTIVE = 1 + } + + + /// + /// The order status that indicates an order can be fulfilled. + /// + /// The order status that indicates an order can be fulfilled. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ActiveOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The order status that indicates an order can be fulfilled. (required). + public ActiveOrderStatus(NameEnum name = default(NameEnum)) + { + this.Name = name; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ActiveOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Activity.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Activity.cs new file mode 100644 index 00000000..4954d436 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Activity.cs @@ -0,0 +1,153 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Activity + /// + [DataContract(Name = "Activity")] + public partial class Activity + { + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public ActivityType Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Activity() { } + /// + /// Initializes a new instance of the class. + /// + /// Activity id in UUIDv4 format (required). + /// chain (required). + /// type (required). + /// details (required). + /// The time activity was updated at (required). + /// The time activity was indexed (required). + /// blockchainMetadata (required). + public Activity(Guid id = default(Guid), Chain chain = default(Chain), ActivityType type = default(ActivityType), ActivityDetails details = default(ActivityDetails), DateTime updatedAt = default(DateTime), DateTime indexedAt = default(DateTime), BlockchainMetadata blockchainMetadata = default(BlockchainMetadata)) + { + this.Id = id; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Activity and cannot be null"); + } + this.Chain = chain; + this.Type = type; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for Activity and cannot be null"); + } + this.Details = details; + this.UpdatedAt = updatedAt; + this.IndexedAt = indexedAt; + // to ensure "blockchainMetadata" is required (not null) + if (blockchainMetadata == null) + { + throw new ArgumentNullException("blockchainMetadata is a required property for Activity and cannot be null"); + } + this.BlockchainMetadata = blockchainMetadata; + } + + /// + /// Activity id in UUIDv4 format + /// + /// Activity id in UUIDv4 format + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Gets or Sets Details + /// + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public ActivityDetails Details { get; set; } + + /// + /// The time activity was updated at + /// + /// The time activity was updated at + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// The time activity was indexed + /// + /// The time activity was indexed + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// Gets or Sets BlockchainMetadata + /// + [DataMember(Name = "blockchain_metadata", IsRequired = true, EmitDefaultValue = true)] + public BlockchainMetadata BlockchainMetadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Activity {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" BlockchainMetadata: ").Append(BlockchainMetadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityAsset.cs similarity index 60% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityAsset.cs index e9c3edf5..120e9364 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityAsset.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,39 +21,39 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; using System.Reflection; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// Token details + /// The contract and asset details for this activity /// - [JsonConverter(typeof(PriceDetailsTokenJsonConverter))] - [DataContract(Name = "PriceDetails_token")] - public partial class PriceDetailsToken : AbstractOpenAPISchema + [JsonConverter(typeof(ActivityAssetJsonConverter))] + [DataContract(Name = "ActivityAsset")] + public partial class ActivityAsset : AbstractOpenAPISchema { /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// - /// An instance of NativeToken. - public PriceDetailsToken(NativeToken actualInstance) + /// An instance of ActivityNFT. + public ActivityAsset(ActivityNFT actualInstance) { this.IsNullable = false; - this.SchemaType = "oneOf"; + this.SchemaType= "oneOf"; this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// - /// An instance of ERC20Token. - public PriceDetailsToken(ERC20Token actualInstance) + /// An instance of ActivityToken. + public ActivityAsset(ActivityToken actualInstance) { this.IsNullable = false; - this.SchemaType = "oneOf"; + this.SchemaType= "oneOf"; this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } @@ -71,39 +71,39 @@ public override Object ActualInstance } set { - if (value.GetType() == typeof(ERC20Token) || value is ERC20Token) + if (value.GetType() == typeof(ActivityNFT) || value is ActivityNFT) { this._actualInstance = value; } - else if (value.GetType() == typeof(NativeToken) || value is NativeToken) + else if (value.GetType() == typeof(ActivityToken) || value is ActivityToken) { this._actualInstance = value; } else { - throw new ArgumentException("Invalid instance found. Must be the following types: ERC20Token, NativeToken"); + throw new ArgumentException("Invalid instance found. Must be the following types: ActivityNFT, ActivityToken"); } } } /// - /// Get the actual instance of `NativeToken`. If the actual instance is not `NativeToken`, + /// Get the actual instance of `ActivityNFT`. If the actual instance is not `ActivityNFT`, /// the InvalidClassException will be thrown /// - /// An instance of NativeToken - public NativeToken GetNativeToken() + /// An instance of ActivityNFT + public ActivityNFT GetActivityNFT() { - return (NativeToken)this.ActualInstance; + return (ActivityNFT)this.ActualInstance; } /// - /// Get the actual instance of `ERC20Token`. If the actual instance is not `ERC20Token`, + /// Get the actual instance of `ActivityToken`. If the actual instance is not `ActivityToken`, /// the InvalidClassException will be thrown /// - /// An instance of ERC20Token - public ERC20Token GetERC20Token() + /// An instance of ActivityToken + public ActivityToken GetActivityToken() { - return (ERC20Token)this.ActualInstance; + return (ActivityToken)this.ActualInstance; } /// @@ -113,7 +113,7 @@ public ERC20Token GetERC20Token() public override string ToString() { var sb = new StringBuilder(); - sb.Append("class PriceDetailsToken {\n"); + sb.Append("class ActivityAsset {\n"); sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -125,21 +125,21 @@ public override string ToString() /// JSON string presentation of the object public override string ToJson() { - return JsonConvert.SerializeObject(this.ActualInstance, PriceDetailsToken.SerializerSettings); + return JsonConvert.SerializeObject(this.ActualInstance, ActivityAsset.SerializerSettings); } /// - /// Converts the JSON string into an instance of PriceDetailsToken + /// Converts the JSON string into an instance of ActivityAsset /// /// JSON string - /// An instance of PriceDetailsToken - public static PriceDetailsToken FromJson(string jsonString) + /// An instance of ActivityAsset + public static ActivityAsset FromJson(string jsonString) { - PriceDetailsToken newPriceDetailsToken = null; + ActivityAsset newActivityAsset = null; if (string.IsNullOrEmpty(jsonString)) { - return newPriceDetailsToken; + return newActivityAsset; } int match = 0; List matchedTypes = new List(); @@ -147,41 +147,41 @@ public static PriceDetailsToken FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(ERC20Token).GetProperty("AdditionalProperties") == null) + if (typeof(ActivityNFT).GetProperty("AdditionalProperties") == null) { - newPriceDetailsToken = new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, PriceDetailsToken.SerializerSettings)); + newActivityAsset = new ActivityAsset(JsonConvert.DeserializeObject(jsonString, ActivityAsset.SerializerSettings)); } else { - newPriceDetailsToken = new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, PriceDetailsToken.AdditionalPropertiesSerializerSettings)); + newActivityAsset = new ActivityAsset(JsonConvert.DeserializeObject(jsonString, ActivityAsset.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("ERC20Token"); + matchedTypes.Add("ActivityNFT"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC20Token: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActivityNFT: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(NativeToken).GetProperty("AdditionalProperties") == null) + if (typeof(ActivityToken).GetProperty("AdditionalProperties") == null) { - newPriceDetailsToken = new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, PriceDetailsToken.SerializerSettings)); + newActivityAsset = new ActivityAsset(JsonConvert.DeserializeObject(jsonString, ActivityAsset.SerializerSettings)); } else { - newPriceDetailsToken = new PriceDetailsToken(JsonConvert.DeserializeObject(jsonString, PriceDetailsToken.AdditionalPropertiesSerializerSettings)); + newActivityAsset = new ActivityAsset(JsonConvert.DeserializeObject(jsonString, ActivityAsset.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("NativeToken"); + matchedTypes.Add("ActivityToken"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into NativeToken: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActivityToken: {1}", jsonString, exception.ToString())); } if (match == 0) @@ -194,15 +194,15 @@ public static PriceDetailsToken FromJson(string jsonString) } // deserialization is considered successful at this point if no exception has been thrown. - return newPriceDetailsToken; + return newActivityAsset; } } /// - /// Custom JSON converter for PriceDetailsToken + /// Custom JSON converter for ActivityAsset /// - public class PriceDetailsTokenJsonConverter : JsonConverter + public class ActivityAssetJsonConverter : JsonConverter { /// /// To write the JSON string @@ -212,7 +212,7 @@ public class PriceDetailsTokenJsonConverter : JsonConverter /// JSON Serializer public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { - writer.WriteRawValue((string)(typeof(PriceDetailsToken).GetMethod("ToJson").Invoke(value, null))); + writer.WriteRawValue((string)(typeof(ActivityAsset).GetMethod("ToJson").Invoke(value, null))); } /// @@ -225,12 +225,12 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s /// The object converted from the JSON string public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - switch (reader.TokenType) + switch(reader.TokenType) { case JsonToken.StartObject: - return PriceDetailsToken.FromJson(JObject.Load(reader).ToString(Formatting.None)); + return ActivityAsset.FromJson(JObject.Load(reader).ToString(Formatting.None)); case JsonToken.StartArray: - return PriceDetailsToken.FromJson(JArray.Load(reader).ToString(Formatting.None)); + return ActivityAsset.FromJson(JArray.Load(reader).ToString(Formatting.None)); default: return null; } diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityDetails.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityDetails.cs new file mode 100644 index 00000000..45177804 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityDetails.cs @@ -0,0 +1,434 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.Model +{ + /// + /// The activity details + /// + [JsonConverter(typeof(ActivityDetailsJsonConverter))] + [DataContract(Name = "ActivityDetails")] + public partial class ActivityDetails : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Mint. + public ActivityDetails(Mint actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Burn. + public ActivityDetails(Burn actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Transfer. + public ActivityDetails(Transfer actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of NFTSale. + public ActivityDetails(NFTSale actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Deposit. + public ActivityDetails(Deposit actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Withdrawal. + public ActivityDetails(Withdrawal actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(Burn) || value is Burn) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(Deposit) || value is Deposit) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(Mint) || value is Mint) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(NFTSale) || value is NFTSale) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(Transfer) || value is Transfer) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(Withdrawal) || value is Withdrawal) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: Burn, Deposit, Mint, NFTSale, Transfer, Withdrawal"); + } + } + } + + /// + /// Get the actual instance of `Mint`. If the actual instance is not `Mint`, + /// the InvalidClassException will be thrown + /// + /// An instance of Mint + public Mint GetMint() + { + return (Mint)this.ActualInstance; + } + + /// + /// Get the actual instance of `Burn`. If the actual instance is not `Burn`, + /// the InvalidClassException will be thrown + /// + /// An instance of Burn + public Burn GetBurn() + { + return (Burn)this.ActualInstance; + } + + /// + /// Get the actual instance of `Transfer`. If the actual instance is not `Transfer`, + /// the InvalidClassException will be thrown + /// + /// An instance of Transfer + public Transfer GetTransfer() + { + return (Transfer)this.ActualInstance; + } + + /// + /// Get the actual instance of `NFTSale`. If the actual instance is not `NFTSale`, + /// the InvalidClassException will be thrown + /// + /// An instance of NFTSale + public NFTSale GetNFTSale() + { + return (NFTSale)this.ActualInstance; + } + + /// + /// Get the actual instance of `Deposit`. If the actual instance is not `Deposit`, + /// the InvalidClassException will be thrown + /// + /// An instance of Deposit + public Deposit GetDeposit() + { + return (Deposit)this.ActualInstance; + } + + /// + /// Get the actual instance of `Withdrawal`. If the actual instance is not `Withdrawal`, + /// the InvalidClassException will be thrown + /// + /// An instance of Withdrawal + public Withdrawal GetWithdrawal() + { + return (Withdrawal)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ActivityDetails {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, ActivityDetails.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of ActivityDetails + /// + /// JSON string + /// An instance of ActivityDetails + public static ActivityDetails FromJson(string jsonString) + { + ActivityDetails newActivityDetails = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newActivityDetails; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Burn).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Burn"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Burn: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Deposit).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Deposit"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Deposit: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Mint).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Mint"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Mint: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(NFTSale).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("NFTSale"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into NFTSale: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Transfer).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Transfer"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Transfer: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Withdrawal).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Withdrawal"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Withdrawal: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newActivityDetails; + } + + } + + /// + /// Custom JSON converter for ActivityDetails + /// + public class ActivityDetailsJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(ActivityDetails).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return ActivityDetails.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return ActivityDetails.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityNFT.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityNFT.cs new file mode 100644 index 00000000..16c4fe32 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityNFT.cs @@ -0,0 +1,127 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ActivityNFT + /// + [DataContract(Name = "ActivityNFT")] + public partial class ActivityNFT + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public NFTContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ActivityNFT() { } + /// + /// Initializes a new instance of the class. + /// + /// contractType (required). + /// The token contract address (required). + /// An `uint256` token id as string (required). + /// (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged (required). + public ActivityNFT(NFTContractType contractType = default(NFTContractType), string contractAddress = default(string), string tokenId = default(string), string amount = default(string)) + { + this.ContractType = contractType; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ActivityNFT and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for ActivityNFT and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ActivityNFT and cannot be null"); + } + this.Amount = amount; + } + + /// + /// The token contract address + /// + /// The token contract address + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged + /// + /// (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + [Obsolete] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ActivityNFT {\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityNativeToken.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityNativeToken.cs new file mode 100644 index 00000000..c1769867 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityNativeToken.cs @@ -0,0 +1,85 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ActivityNativeToken + /// + [DataContract(Name = "ActivityNativeToken")] + public partial class ActivityNativeToken + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ActivityNativeToken() { } + /// + /// Initializes a new instance of the class. + /// + /// The token symbol (required). + public ActivityNativeToken(string symbol = default(string)) + { + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for ActivityNativeToken and cannot be null"); + } + this.Symbol = symbol; + } + + /// + /// The token symbol + /// + /// The token symbol + /// ETH + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ActivityNativeToken {\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityToken.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityToken.cs new file mode 100644 index 00000000..443a595b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityToken.cs @@ -0,0 +1,94 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ActivityToken + /// + [DataContract(Name = "ActivityToken")] + public partial class ActivityToken + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public TokenContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ActivityToken() { } + /// + /// Initializes a new instance of the class. + /// + /// contractType (required). + /// The contract address (required). + public ActivityToken(TokenContractType contractType = default(TokenContractType), string contractAddress = default(string)) + { + this.ContractType = contractType; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ActivityToken and cannot be null"); + } + this.ContractAddress = contractAddress; + } + + /// + /// The contract address + /// + /// The contract address + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ActivityToken {\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityType.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityType.cs new file mode 100644 index 00000000..1d7c3e64 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ActivityType.cs @@ -0,0 +1,72 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The activity type + /// + /// The activity type + [JsonConverter(typeof(StringEnumConverter))] + public enum ActivityType + { + /// + /// Enum Mint for value: mint + /// + [EnumMember(Value = "mint")] + Mint = 1, + + /// + /// Enum Burn for value: burn + /// + [EnumMember(Value = "burn")] + Burn = 2, + + /// + /// Enum Transfer for value: transfer + /// + [EnumMember(Value = "transfer")] + Transfer = 3, + + /// + /// Enum Sale for value: sale + /// + [EnumMember(Value = "sale")] + Sale = 4, + + /// + /// Enum Deposit for value: deposit + /// + [EnumMember(Value = "deposit")] + Deposit = 5, + + /// + /// Enum Withdrawal for value: withdrawal + /// + [EnumMember(Value = "withdrawal")] + Withdrawal = 6 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/AssetCollectionItem.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/AssetCollectionItem.cs new file mode 100644 index 00000000..0fdc8ca1 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/AssetCollectionItem.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.Model +{ + /// + /// AssetCollectionItem + /// + [JsonConverter(typeof(AssetCollectionItemJsonConverter))] + [DataContract(Name = "AssetCollectionItem")] + public partial class AssetCollectionItem : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC721CollectionItem. + public AssetCollectionItem(ERC721CollectionItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC1155CollectionItem. + public AssetCollectionItem(ERC1155CollectionItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(ERC1155CollectionItem) || value is ERC1155CollectionItem) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC721CollectionItem) || value is ERC721CollectionItem) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: ERC1155CollectionItem, ERC721CollectionItem"); + } + } + } + + /// + /// Get the actual instance of `ERC721CollectionItem`. If the actual instance is not `ERC721CollectionItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC721CollectionItem + public ERC721CollectionItem GetERC721CollectionItem() + { + return (ERC721CollectionItem)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC1155CollectionItem`. If the actual instance is not `ERC1155CollectionItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC1155CollectionItem + public ERC1155CollectionItem GetERC1155CollectionItem() + { + return (ERC1155CollectionItem)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AssetCollectionItem {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, AssetCollectionItem.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of AssetCollectionItem + /// + /// JSON string + /// An instance of AssetCollectionItem + public static AssetCollectionItem FromJson(string jsonString) + { + AssetCollectionItem newAssetCollectionItem = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newAssetCollectionItem; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC1155CollectionItem).GetProperty("AdditionalProperties") == null) + { + newAssetCollectionItem = new AssetCollectionItem(JsonConvert.DeserializeObject(jsonString, AssetCollectionItem.SerializerSettings)); + } + else + { + newAssetCollectionItem = new AssetCollectionItem(JsonConvert.DeserializeObject(jsonString, AssetCollectionItem.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC1155CollectionItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC1155CollectionItem: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC721CollectionItem).GetProperty("AdditionalProperties") == null) + { + newAssetCollectionItem = new AssetCollectionItem(JsonConvert.DeserializeObject(jsonString, AssetCollectionItem.SerializerSettings)); + } + else + { + newAssetCollectionItem = new AssetCollectionItem(JsonConvert.DeserializeObject(jsonString, AssetCollectionItem.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC721CollectionItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC721CollectionItem: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newAssetCollectionItem; + } + + } + + /// + /// Custom JSON converter for AssetCollectionItem + /// + public class AssetCollectionItemJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(AssetCollectionItem).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return AssetCollectionItem.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return AssetCollectionItem.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/AssetVerificationStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/AssetVerificationStatus.cs new file mode 100644 index 00000000..b6f816d9 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/AssetVerificationStatus.cs @@ -0,0 +1,60 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The verification status for a given contract + /// + /// The verification status for a given contract + [JsonConverter(typeof(StringEnumConverter))] + public enum AssetVerificationStatus + { + /// + /// Enum Verified for value: verified + /// + [EnumMember(Value = "verified")] + Verified = 1, + + /// + /// Enum Unverified for value: unverified + /// + [EnumMember(Value = "unverified")] + Unverified = 2, + + /// + /// Enum Spam for value: spam + /// + [EnumMember(Value = "spam")] + Spam = 3, + + /// + /// Enum Inactive for value: inactive + /// + [EnumMember(Value = "inactive")] + Inactive = 4 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BasicAPIError.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/BasicAPIError.cs similarity index 93% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BasicAPIError.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/BasicAPIError.cs index a9496f8a..0fd3515e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BasicAPIError.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/BasicAPIError.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// BasicAPIError diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/BidResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/BidResult.cs new file mode 100644 index 00000000..a26c8632 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/BidResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// BidResult + /// + [DataContract(Name = "BidResult")] + public partial class BidResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BidResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public BidResult(Order result = default(Order)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for BidResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Order Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BidResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/BlockchainMetadata.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/BlockchainMetadata.cs new file mode 100644 index 00000000..9b751ee3 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/BlockchainMetadata.cs @@ -0,0 +1,133 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The metadata related to blockchain transaction + /// + [DataContract(Name = "BlockchainMetadata")] + public partial class BlockchainMetadata + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BlockchainMetadata() { } + /// + /// Initializes a new instance of the class. + /// + /// The transaction hash of the activity (required). + /// EVM block number (uint64 as string) (required). + /// Transaction index in a block (uint32 as string) (required). + /// The log index of activity in a block (uint32 as string) (required). + public BlockchainMetadata(string transactionHash = default(string), string blockNumber = default(string), string transactionIndex = default(string), string logIndex = default(string)) + { + // to ensure "transactionHash" is required (not null) + if (transactionHash == null) + { + throw new ArgumentNullException("transactionHash is a required property for BlockchainMetadata and cannot be null"); + } + this.TransactionHash = transactionHash; + // to ensure "blockNumber" is required (not null) + if (blockNumber == null) + { + throw new ArgumentNullException("blockNumber is a required property for BlockchainMetadata and cannot be null"); + } + this.BlockNumber = blockNumber; + // to ensure "transactionIndex" is required (not null) + if (transactionIndex == null) + { + throw new ArgumentNullException("transactionIndex is a required property for BlockchainMetadata and cannot be null"); + } + this.TransactionIndex = transactionIndex; + // to ensure "logIndex" is required (not null) + if (logIndex == null) + { + throw new ArgumentNullException("logIndex is a required property for BlockchainMetadata and cannot be null"); + } + this.LogIndex = logIndex; + } + + /// + /// The transaction hash of the activity + /// + /// The transaction hash of the activity + /// 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + [DataMember(Name = "transaction_hash", IsRequired = true, EmitDefaultValue = true)] + public string TransactionHash { get; set; } + + /// + /// EVM block number (uint64 as string) + /// + /// EVM block number (uint64 as string) + /// 1 + [DataMember(Name = "block_number", IsRequired = true, EmitDefaultValue = true)] + public string BlockNumber { get; set; } + + /// + /// Transaction index in a block (uint32 as string) + /// + /// Transaction index in a block (uint32 as string) + /// 1 + [DataMember(Name = "transaction_index", IsRequired = true, EmitDefaultValue = true)] + public string TransactionIndex { get; set; } + + /// + /// The log index of activity in a block (uint32 as string) + /// + /// The log index of activity in a block (uint32 as string) + /// 1 + [DataMember(Name = "log_index", IsRequired = true, EmitDefaultValue = true)] + public string LogIndex { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BlockchainMetadata {\n"); + sb.Append(" TransactionHash: ").Append(TransactionHash).Append("\n"); + sb.Append(" BlockNumber: ").Append(BlockNumber).Append("\n"); + sb.Append(" TransactionIndex: ").Append(TransactionIndex).Append("\n"); + sb.Append(" LogIndex: ").Append(LogIndex).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Burn.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Burn.cs new file mode 100644 index 00000000..8ba989a9 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Burn.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The burn activity details + /// + [DataContract(Name = "Burn")] + public partial class Burn + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Burn() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was transferred from (required). + /// The amount of assets burnt (required). + /// asset (required). + public Burn(string from = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "from" is required (not null) + if (from == null) + { + throw new ArgumentNullException("from is a required property for Burn and cannot be null"); + } + this.From = from; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Burn and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Burn and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was transferred from + /// + /// The account address the asset was transferred from + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// The amount of assets burnt + /// + /// The amount of assets burnt + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Burn {\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Call.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Call.cs new file mode 100644 index 00000000..ecd2976d --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Call.cs @@ -0,0 +1,117 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Call + /// + [DataContract(Name = "Call")] + public partial class Call + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Call() { } + /// + /// Initializes a new instance of the class. + /// + /// An Ethereum address (required). + /// The function signature (required). + /// The function arguments (required). + public Call(string targetAddress = default(string), string functionSignature = default(string), List functionArgs = default(List)) + { + // to ensure "targetAddress" is required (not null) + if (targetAddress == null) + { + throw new ArgumentNullException("targetAddress is a required property for Call and cannot be null"); + } + this.TargetAddress = targetAddress; + // to ensure "functionSignature" is required (not null) + if (functionSignature == null) + { + throw new ArgumentNullException("functionSignature is a required property for Call and cannot be null"); + } + this.FunctionSignature = functionSignature; + // to ensure "functionArgs" is required (not null) + if (functionArgs == null) + { + throw new ArgumentNullException("functionArgs is a required property for Call and cannot be null"); + } + this.FunctionArgs = functionArgs; + } + + /// + /// An Ethereum address + /// + /// An Ethereum address + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "target_address", IsRequired = true, EmitDefaultValue = true)] + public string TargetAddress { get; set; } + + /// + /// The function signature + /// + /// The function signature + /// mint(address,uint256) + [DataMember(Name = "function_signature", IsRequired = true, EmitDefaultValue = true)] + public string FunctionSignature { get; set; } + + /// + /// The function arguments + /// + /// The function arguments + /// ["0x8a90cab2b38dba80c64b7734e58ee1db38b8992e","1"] + [DataMember(Name = "function_args", IsRequired = true, EmitDefaultValue = true)] + public List FunctionArgs { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Call {\n"); + sb.Append(" TargetAddress: ").Append(TargetAddress).Append("\n"); + sb.Append(" FunctionSignature: ").Append(FunctionSignature).Append("\n"); + sb.Append(" FunctionArgs: ").Append(FunctionArgs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelOrdersRequestBody.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelOrdersRequestBody.cs new file mode 100644 index 00000000..02f2c9fd --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelOrdersRequestBody.cs @@ -0,0 +1,116 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CancelOrdersRequestBody + /// + [DataContract(Name = "CancelOrdersRequestBody")] + public partial class CancelOrdersRequestBody + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CancelOrdersRequestBody() { } + /// + /// Initializes a new instance of the class. + /// + /// Address of the user initiating the cancel request (required). + /// List of order ids proposed for cancellation (required). + /// Signature generated by the user for the specific cancellation request (required). + public CancelOrdersRequestBody(string accountAddress = default(string), List orders = default(List), string signature = default(string)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for CancelOrdersRequestBody and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "orders" is required (not null) + if (orders == null) + { + throw new ArgumentNullException("orders is a required property for CancelOrdersRequestBody and cannot be null"); + } + this.Orders = orders; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for CancelOrdersRequestBody and cannot be null"); + } + this.Signature = signature; + } + + /// + /// Address of the user initiating the cancel request + /// + /// Address of the user initiating the cancel request + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// List of order ids proposed for cancellation + /// + /// List of order ids proposed for cancellation + [DataMember(Name = "orders", IsRequired = true, EmitDefaultValue = true)] + public List Orders { get; set; } + + /// + /// Signature generated by the user for the specific cancellation request + /// + /// Signature generated by the user for the specific cancellation request + /// 0x12345 + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CancelOrdersRequestBody {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" Orders: ").Append(Orders).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelOrdersResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelOrdersResult.cs new file mode 100644 index 00000000..fd70d231 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelOrdersResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CancelOrdersResult + /// + [DataContract(Name = "CancelOrdersResult")] + public partial class CancelOrdersResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CancelOrdersResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public CancelOrdersResult(CancelOrdersResultData result = default(CancelOrdersResultData)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for CancelOrdersResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public CancelOrdersResultData Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CancelOrdersResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelOrdersResultData.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelOrdersResultData.cs new file mode 100644 index 00000000..7775fd92 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelOrdersResultData.cs @@ -0,0 +1,114 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CancelOrdersResultData + /// + [DataContract(Name = "CancelOrdersResultData")] + public partial class CancelOrdersResultData + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CancelOrdersResultData() { } + /// + /// Initializes a new instance of the class. + /// + /// Orders which were successfully cancelled (required). + /// Orders which are marked for cancellation but the cancellation cannot be guaranteed (required). + /// Orders which failed to be cancelled (required). + public CancelOrdersResultData(List successfulCancellations = default(List), List pendingCancellations = default(List), List failedCancellations = default(List)) + { + // to ensure "successfulCancellations" is required (not null) + if (successfulCancellations == null) + { + throw new ArgumentNullException("successfulCancellations is a required property for CancelOrdersResultData and cannot be null"); + } + this.SuccessfulCancellations = successfulCancellations; + // to ensure "pendingCancellations" is required (not null) + if (pendingCancellations == null) + { + throw new ArgumentNullException("pendingCancellations is a required property for CancelOrdersResultData and cannot be null"); + } + this.PendingCancellations = pendingCancellations; + // to ensure "failedCancellations" is required (not null) + if (failedCancellations == null) + { + throw new ArgumentNullException("failedCancellations is a required property for CancelOrdersResultData and cannot be null"); + } + this.FailedCancellations = failedCancellations; + } + + /// + /// Orders which were successfully cancelled + /// + /// Orders which were successfully cancelled + [DataMember(Name = "successful_cancellations", IsRequired = true, EmitDefaultValue = true)] + public List SuccessfulCancellations { get; set; } + + /// + /// Orders which are marked for cancellation but the cancellation cannot be guaranteed + /// + /// Orders which are marked for cancellation but the cancellation cannot be guaranteed + [DataMember(Name = "pending_cancellations", IsRequired = true, EmitDefaultValue = true)] + public List PendingCancellations { get; set; } + + /// + /// Orders which failed to be cancelled + /// + /// Orders which failed to be cancelled + [DataMember(Name = "failed_cancellations", IsRequired = true, EmitDefaultValue = true)] + public List FailedCancellations { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CancelOrdersResultData {\n"); + sb.Append(" SuccessfulCancellations: ").Append(SuccessfulCancellations).Append("\n"); + sb.Append(" PendingCancellations: ").Append(PendingCancellations).Append("\n"); + sb.Append(" FailedCancellations: ").Append(FailedCancellations).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelledOrderStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelledOrderStatus.cs new file mode 100644 index 00000000..1a6572ae --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CancelledOrderStatus.cs @@ -0,0 +1,141 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CancelledOrderStatus + /// + [DataContract(Name = "CancelledOrderStatus")] + public partial class CancelledOrderStatus + { + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum CANCELLED for value: CANCELLED + /// + [EnumMember(Value = "CANCELLED")] + CANCELLED = 1 + } + + + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account + /// + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account + [JsonConverter(typeof(StringEnumConverter))] + public enum CancellationTypeEnum + { + /// + /// Enum ONCHAIN for value: ON_CHAIN + /// + [EnumMember(Value = "ON_CHAIN")] + ONCHAIN = 1, + + /// + /// Enum OFFCHAIN for value: OFF_CHAIN + /// + [EnumMember(Value = "OFF_CHAIN")] + OFFCHAIN = 2, + + /// + /// Enum UNDERFUNDED for value: UNDERFUNDED + /// + [EnumMember(Value = "UNDERFUNDED")] + UNDERFUNDED = 3 + } + + + /// + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account + /// + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account + /// ON_CHAIN + [DataMember(Name = "cancellation_type", IsRequired = true, EmitDefaultValue = true)] + public CancellationTypeEnum CancellationType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CancelledOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. (required). + /// Whether the cancellation of the order is pending (required). + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account (required). + public CancelledOrderStatus(NameEnum name = default(NameEnum), bool pending = default(bool), CancellationTypeEnum cancellationType = default(CancellationTypeEnum)) + { + this.Name = name; + this.Pending = pending; + this.CancellationType = cancellationType; + } + + /// + /// Whether the cancellation of the order is pending + /// + /// Whether the cancellation of the order is pending + /// false + [DataMember(Name = "pending", IsRequired = true, EmitDefaultValue = true)] + public bool Pending { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CancelledOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Pending: ").Append(Pending).Append("\n"); + sb.Append(" CancellationType: ").Append(CancellationType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Chain.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Chain.cs similarity index 57% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Chain.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Chain.cs index a16195b9..fab0a6f7 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Chain.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Chain.cs @@ -1,53 +1,64 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// The chain details + /// The chain details /// [DataContract(Name = "Chain")] - public class Chain + public partial class Chain { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Chain() - { - } - + protected Chain() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The id of chain (required). /// The name of chain (required). - public Chain(string id = default, string name = default) + public Chain(string id = default(string), string name = default(string)) { // to ensure "id" is required (not null) - if (id == null) throw new ArgumentNullException("id is a required property for Chain and cannot be null"); - Id = id; + if (id == null) + { + throw new ArgumentNullException("id is a required property for Chain and cannot be null"); + } + this.Id = id; // to ensure "name" is required (not null) if (name == null) + { throw new ArgumentNullException("name is a required property for Chain and cannot be null"); - Name = name; + } + this.Name = name; } /// - /// The id of chain + /// The id of chain /// /// The id of chain /// eip155:13372 @@ -55,7 +66,7 @@ public Chain(string id = default, string name = default) public string Id { get; set; } /// - /// The name of chain + /// The name of chain /// /// The name of chain /// imtbl-zkevm-testnet @@ -63,12 +74,12 @@ public Chain(string id = default, string name = default) public string Name { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Chain {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); @@ -77,12 +88,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ChainWithDetails.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ChainWithDetails.cs new file mode 100644 index 00000000..47e6c429 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ChainWithDetails.cs @@ -0,0 +1,116 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ChainWithDetails + /// + [DataContract(Name = "ChainWithDetails")] + public partial class ChainWithDetails + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ChainWithDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of chain (required). + /// The name of chain (required). + /// URL for RPC node (required). + public ChainWithDetails(string id = default(string), string name = default(string), string rpcUrl = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for ChainWithDetails and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for ChainWithDetails and cannot be null"); + } + this.Name = name; + // to ensure "rpcUrl" is required (not null) + if (rpcUrl == null) + { + throw new ArgumentNullException("rpcUrl is a required property for ChainWithDetails and cannot be null"); + } + this.RpcUrl = rpcUrl; + } + + /// + /// The id of chain + /// + /// The id of chain + /// eip155:13372 + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// The name of chain + /// + /// The name of chain + /// imtbl-zkevm-testnet + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// URL for RPC node + /// + /// URL for RPC node + [DataMember(Name = "rpc_url", IsRequired = true, EmitDefaultValue = true)] + public string RpcUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ChainWithDetails {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" RpcUrl: ").Append(RpcUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Collection.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Collection.cs new file mode 100644 index 00000000..1793ee02 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Collection.cs @@ -0,0 +1,262 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Collection + /// + [DataContract(Name = "Collection")] + public partial class Collection + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public CollectionContractType ContractType { get; set; } + + /// + /// Gets or Sets VerificationStatus + /// + [DataMember(Name = "verification_status", IsRequired = true, EmitDefaultValue = true)] + public AssetVerificationStatus VerificationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Collection() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The name of the collection (required). + /// The symbol of contract (required). + /// contractType (required). + /// The address of the contract (required). + /// The description of collection (required). + /// The url of the collection image (required). + /// The url of external link (required). + /// The uri for the metadata of the collection. + /// The metadata uri for nft (required). + /// verificationStatus (required). + /// When the collection was first indexed (required). + /// When the collection was last updated (required). + /// When the collection metadata was last synced (required). + public Collection(Chain chain = default(Chain), string name = default(string), string symbol = default(string), CollectionContractType contractType = default(CollectionContractType), string contractAddress = default(string), string description = default(string), string image = default(string), string externalLink = default(string), string contractUri = default(string), string baseUri = default(string), AssetVerificationStatus verificationStatus = default(AssetVerificationStatus), DateTime indexedAt = default(DateTime), DateTime updatedAt = default(DateTime), DateTime? metadataSyncedAt = default(DateTime?)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Collection and cannot be null"); + } + this.Chain = chain; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Collection and cannot be null"); + } + this.Name = name; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for Collection and cannot be null"); + } + this.Symbol = symbol; + this.ContractType = contractType; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for Collection and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for Collection and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for Collection and cannot be null"); + } + this.Image = image; + // to ensure "externalLink" is required (not null) + if (externalLink == null) + { + throw new ArgumentNullException("externalLink is a required property for Collection and cannot be null"); + } + this.ExternalLink = externalLink; + // to ensure "baseUri" is required (not null) + if (baseUri == null) + { + throw new ArgumentNullException("baseUri is a required property for Collection and cannot be null"); + } + this.BaseUri = baseUri; + this.VerificationStatus = verificationStatus; + this.IndexedAt = indexedAt; + this.UpdatedAt = updatedAt; + // to ensure "metadataSyncedAt" is required (not null) + if (metadataSyncedAt == null) + { + throw new ArgumentNullException("metadataSyncedAt is a required property for Collection and cannot be null"); + } + this.MetadataSyncedAt = metadataSyncedAt; + this.ContractUri = contractUri; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The name of the collection + /// + /// The name of the collection + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The symbol of contract + /// + /// The symbol of contract + /// BASP + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The address of the contract + /// + /// The address of the contract + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The description of collection + /// + /// The description of collection + /// Some description + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The url of the collection image + /// + /// The url of the collection image + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The url of external link + /// + /// The url of external link + /// https://some-url + [DataMember(Name = "external_link", IsRequired = true, EmitDefaultValue = true)] + public string ExternalLink { get; set; } + + /// + /// The uri for the metadata of the collection + /// + /// The uri for the metadata of the collection + /// https://some-url + [DataMember(Name = "contract_uri", EmitDefaultValue = true)] + public string ContractUri { get; set; } + + /// + /// The metadata uri for nft + /// + /// The metadata uri for nft + /// https://some-url + [DataMember(Name = "base_uri", IsRequired = true, EmitDefaultValue = true)] + public string BaseUri { get; set; } + + /// + /// When the collection was first indexed + /// + /// When the collection was first indexed + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// When the collection was last updated + /// + /// When the collection was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// When the collection metadata was last synced + /// + /// When the collection metadata was last synced + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "metadata_synced_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime? MetadataSyncedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Collection {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalLink: ").Append(ExternalLink).Append("\n"); + sb.Append(" ContractUri: ").Append(ContractUri).Append("\n"); + sb.Append(" BaseUri: ").Append(BaseUri).Append("\n"); + sb.Append(" VerificationStatus: ").Append(VerificationStatus).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" MetadataSyncedAt: ").Append(MetadataSyncedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CollectionBidResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CollectionBidResult.cs new file mode 100644 index 00000000..4d97e020 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CollectionBidResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CollectionBidResult + /// + [DataContract(Name = "CollectionBidResult")] + public partial class CollectionBidResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CollectionBidResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public CollectionBidResult(Order result = default(Order)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for CollectionBidResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Order Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CollectionBidResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CollectionContractType.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CollectionContractType.cs new file mode 100644 index 00000000..63f7a77a --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CollectionContractType.cs @@ -0,0 +1,48 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The collection contract type + /// + /// The collection contract type + [JsonConverter(typeof(StringEnumConverter))] + public enum CollectionContractType + { + /// + /// Enum ERC721 for value: ERC721 + /// + [EnumMember(Value = "ERC721")] + ERC721 = 1, + + /// + /// Enum ERC1155 for value: ERC1155 + /// + [EnumMember(Value = "ERC1155")] + ERC1155 = 2 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CollectionMetadata.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CollectionMetadata.cs new file mode 100644 index 00000000..89533025 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CollectionMetadata.cs @@ -0,0 +1,181 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CollectionMetadata + /// + [DataContract(Name = "CollectionMetadata")] + public partial class CollectionMetadata + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CollectionMetadata() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the collection (required). + /// The symbol of contract (required). + /// The description of collection (required). + /// The url of the collection image (required). + /// The url of external link (required). + /// The uri for the metadata of the collection (required). + /// The metadata uri for nft (required). + public CollectionMetadata(string name = default(string), string symbol = default(string), string description = default(string), string image = default(string), string externalLink = default(string), string contractUri = default(string), string baseUri = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CollectionMetadata and cannot be null"); + } + this.Name = name; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for CollectionMetadata and cannot be null"); + } + this.Symbol = symbol; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for CollectionMetadata and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for CollectionMetadata and cannot be null"); + } + this.Image = image; + // to ensure "externalLink" is required (not null) + if (externalLink == null) + { + throw new ArgumentNullException("externalLink is a required property for CollectionMetadata and cannot be null"); + } + this.ExternalLink = externalLink; + // to ensure "contractUri" is required (not null) + if (contractUri == null) + { + throw new ArgumentNullException("contractUri is a required property for CollectionMetadata and cannot be null"); + } + this.ContractUri = contractUri; + // to ensure "baseUri" is required (not null) + if (baseUri == null) + { + throw new ArgumentNullException("baseUri is a required property for CollectionMetadata and cannot be null"); + } + this.BaseUri = baseUri; + } + + /// + /// The name of the collection + /// + /// The name of the collection + /// Gigantic Lizards + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The symbol of contract + /// + /// The symbol of contract + /// GLZ + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The description of collection + /// + /// The description of collection + /// This is the Gigantic Lizards collection + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The url of the collection image + /// + /// The url of the collection image + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The url of external link + /// + /// The url of external link + /// https://some-url + [DataMember(Name = "external_link", IsRequired = true, EmitDefaultValue = true)] + public string ExternalLink { get; set; } + + /// + /// The uri for the metadata of the collection + /// + /// The uri for the metadata of the collection + /// https://some-url + [DataMember(Name = "contract_uri", IsRequired = true, EmitDefaultValue = true)] + public string ContractUri { get; set; } + + /// + /// The metadata uri for nft + /// + /// The metadata uri for nft + /// https://some-url + [DataMember(Name = "base_uri", IsRequired = true, EmitDefaultValue = true)] + public string BaseUri { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CollectionMetadata {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalLink: ").Append(ExternalLink).Append("\n"); + sb.Append(" ContractUri: ").Append(ContractUri).Append("\n"); + sb.Append(" BaseUri: ").Append(BaseUri).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateBidRequestBody.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateBidRequestBody.cs new file mode 100644 index 00000000..72c04c1b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateBidRequestBody.cs @@ -0,0 +1,215 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CreateBidRequestBody + /// + [DataContract(Name = "CreateBidRequestBody")] + public partial class CreateBidRequestBody + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateBidRequestBody() { } + /// + /// Initializes a new instance of the class. + /// + /// accountAddress (required). + /// orderHash (required). + /// Buy item for bid should either be ERC721 or ERC1155 item (required). + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. (required). + /// Time after which the Order is considered expired (required). + /// protocolData (required). + /// A random value added to the create Order request (required). + /// Sell item for bid should be an ERC20 item (required). + /// Digital signature generated by the user for the specific Order (required). + /// Time after which Order is considered active (required). + public CreateBidRequestBody(string accountAddress = default(string), string orderHash = default(string), List buy = default(List), List fees = default(List), DateTime endAt = default(DateTime), ProtocolData protocolData = default(ProtocolData), string salt = default(string), List sell = default(List), string signature = default(string), DateTime startAt = default(DateTime)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for CreateBidRequestBody and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "orderHash" is required (not null) + if (orderHash == null) + { + throw new ArgumentNullException("orderHash is a required property for CreateBidRequestBody and cannot be null"); + } + this.OrderHash = orderHash; + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for CreateBidRequestBody and cannot be null"); + } + this.Buy = buy; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for CreateBidRequestBody and cannot be null"); + } + this.Fees = fees; + this.EndAt = endAt; + // to ensure "protocolData" is required (not null) + if (protocolData == null) + { + throw new ArgumentNullException("protocolData is a required property for CreateBidRequestBody and cannot be null"); + } + this.ProtocolData = protocolData; + // to ensure "salt" is required (not null) + if (salt == null) + { + throw new ArgumentNullException("salt is a required property for CreateBidRequestBody and cannot be null"); + } + this.Salt = salt; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for CreateBidRequestBody and cannot be null"); + } + this.Sell = sell; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for CreateBidRequestBody and cannot be null"); + } + this.Signature = signature; + this.StartAt = startAt; + } + + /// + /// Gets or Sets AccountAddress + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// Gets or Sets OrderHash + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "order_hash", IsRequired = true, EmitDefaultValue = true)] + public string OrderHash { get; set; } + + /// + /// Buy item for bid should either be ERC721 or ERC1155 item + /// + /// Buy item for bid should either be ERC721 or ERC1155 item + /// [{"type":"ERC721","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","token_id":"1"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Time after which the Order is considered expired + /// + /// Time after which the Order is considered expired + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "end_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime EndAt { get; set; } + + /// + /// Gets or Sets ProtocolData + /// + [DataMember(Name = "protocol_data", IsRequired = true, EmitDefaultValue = true)] + public ProtocolData ProtocolData { get; set; } + + /// + /// A random value added to the create Order request + /// + /// A random value added to the create Order request + /// 12686911856931635052326433555881236148 + [DataMember(Name = "salt", IsRequired = true, EmitDefaultValue = true)] + public string Salt { get; set; } + + /// + /// Sell item for bid should be an ERC20 item + /// + /// Sell item for bid should be an ERC20 item + /// [{"type":"ERC20","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","amount":"9750000000000000000"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Digital signature generated by the user for the specific Order + /// + /// Digital signature generated by the user for the specific Order + /// 0x + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Time after which Order is considered active + /// + /// Time after which Order is considered active + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "start_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime StartAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateBidRequestBody {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" EndAt: ").Append(EndAt).Append("\n"); + sb.Append(" ProtocolData: ").Append(ProtocolData).Append("\n"); + sb.Append(" Salt: ").Append(Salt).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" StartAt: ").Append(StartAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateCollectionBidRequestBody.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateCollectionBidRequestBody.cs new file mode 100644 index 00000000..97bcadf4 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateCollectionBidRequestBody.cs @@ -0,0 +1,215 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CreateCollectionBidRequestBody + /// + [DataContract(Name = "CreateCollectionBidRequestBody")] + public partial class CreateCollectionBidRequestBody + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateCollectionBidRequestBody() { } + /// + /// Initializes a new instance of the class. + /// + /// accountAddress (required). + /// orderHash (required). + /// Buy item for collection bid should either be ERC721 or ERC1155 collection item (required). + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. (required). + /// Time after which the Order is considered expired (required). + /// protocolData (required). + /// A random value added to the create Order request (required). + /// Sell item for collection bid should be an ERC20 item (required). + /// Digital signature generated by the user for the specific Order (required). + /// Time after which Order is considered active (required). + public CreateCollectionBidRequestBody(string accountAddress = default(string), string orderHash = default(string), List buy = default(List), List fees = default(List), DateTime endAt = default(DateTime), ProtocolData protocolData = default(ProtocolData), string salt = default(string), List sell = default(List), string signature = default(string), DateTime startAt = default(DateTime)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "orderHash" is required (not null) + if (orderHash == null) + { + throw new ArgumentNullException("orderHash is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.OrderHash = orderHash; + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Buy = buy; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Fees = fees; + this.EndAt = endAt; + // to ensure "protocolData" is required (not null) + if (protocolData == null) + { + throw new ArgumentNullException("protocolData is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.ProtocolData = protocolData; + // to ensure "salt" is required (not null) + if (salt == null) + { + throw new ArgumentNullException("salt is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Salt = salt; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Sell = sell; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Signature = signature; + this.StartAt = startAt; + } + + /// + /// Gets or Sets AccountAddress + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// Gets or Sets OrderHash + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "order_hash", IsRequired = true, EmitDefaultValue = true)] + public string OrderHash { get; set; } + + /// + /// Buy item for collection bid should either be ERC721 or ERC1155 collection item + /// + /// Buy item for collection bid should either be ERC721 or ERC1155 collection item + /// [{"type":"ERC721_COLLECTION","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","amount":"1"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Time after which the Order is considered expired + /// + /// Time after which the Order is considered expired + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "end_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime EndAt { get; set; } + + /// + /// Gets or Sets ProtocolData + /// + [DataMember(Name = "protocol_data", IsRequired = true, EmitDefaultValue = true)] + public ProtocolData ProtocolData { get; set; } + + /// + /// A random value added to the create Order request + /// + /// A random value added to the create Order request + /// 12686911856931635052326433555881236148 + [DataMember(Name = "salt", IsRequired = true, EmitDefaultValue = true)] + public string Salt { get; set; } + + /// + /// Sell item for collection bid should be an ERC20 item + /// + /// Sell item for collection bid should be an ERC20 item + /// [{"type":"ERC20","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","amount":"9750000000000000000"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Digital signature generated by the user for the specific Order + /// + /// Digital signature generated by the user for the specific Order + /// 0x + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Time after which Order is considered active + /// + /// Time after which Order is considered active + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "start_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime StartAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateCollectionBidRequestBody {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" EndAt: ").Append(EndAt).Append("\n"); + sb.Append(" ProtocolData: ").Append(ProtocolData).Append("\n"); + sb.Append(" Salt: ").Append(Salt).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" StartAt: ").Append(StartAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateListingRequestBody.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateListingRequestBody.cs new file mode 100644 index 00000000..7f00df24 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateListingRequestBody.cs @@ -0,0 +1,215 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CreateListingRequestBody + /// + [DataContract(Name = "CreateListingRequestBody")] + public partial class CreateListingRequestBody + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateListingRequestBody() { } + /// + /// Initializes a new instance of the class. + /// + /// accountAddress (required). + /// orderHash (required). + /// Buy item for listing should either be NATIVE or ERC20 item (required). + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. (required). + /// Time after which the Order is considered expired (required). + /// protocolData (required). + /// A random value added to the create Order request (required). + /// Sell item for listing should be an ERC721 item (required). + /// Digital signature generated by the user for the specific Order (required). + /// Time after which Order is considered active (required). + public CreateListingRequestBody(string accountAddress = default(string), string orderHash = default(string), List buy = default(List), List fees = default(List), DateTime endAt = default(DateTime), ProtocolData protocolData = default(ProtocolData), string salt = default(string), List sell = default(List), string signature = default(string), DateTime startAt = default(DateTime)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for CreateListingRequestBody and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "orderHash" is required (not null) + if (orderHash == null) + { + throw new ArgumentNullException("orderHash is a required property for CreateListingRequestBody and cannot be null"); + } + this.OrderHash = orderHash; + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for CreateListingRequestBody and cannot be null"); + } + this.Buy = buy; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for CreateListingRequestBody and cannot be null"); + } + this.Fees = fees; + this.EndAt = endAt; + // to ensure "protocolData" is required (not null) + if (protocolData == null) + { + throw new ArgumentNullException("protocolData is a required property for CreateListingRequestBody and cannot be null"); + } + this.ProtocolData = protocolData; + // to ensure "salt" is required (not null) + if (salt == null) + { + throw new ArgumentNullException("salt is a required property for CreateListingRequestBody and cannot be null"); + } + this.Salt = salt; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for CreateListingRequestBody and cannot be null"); + } + this.Sell = sell; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for CreateListingRequestBody and cannot be null"); + } + this.Signature = signature; + this.StartAt = startAt; + } + + /// + /// Gets or Sets AccountAddress + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// Gets or Sets OrderHash + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "order_hash", IsRequired = true, EmitDefaultValue = true)] + public string OrderHash { get; set; } + + /// + /// Buy item for listing should either be NATIVE or ERC20 item + /// + /// Buy item for listing should either be NATIVE or ERC20 item + /// [{"type":"NATIVE","amount":"9750000000000000000","contract_address":"0x0165878A594ca255338adfa4d48449f69242Eb8F"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Time after which the Order is considered expired + /// + /// Time after which the Order is considered expired + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "end_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime EndAt { get; set; } + + /// + /// Gets or Sets ProtocolData + /// + [DataMember(Name = "protocol_data", IsRequired = true, EmitDefaultValue = true)] + public ProtocolData ProtocolData { get; set; } + + /// + /// A random value added to the create Order request + /// + /// A random value added to the create Order request + /// 12686911856931635052326433555881236148 + [DataMember(Name = "salt", IsRequired = true, EmitDefaultValue = true)] + public string Salt { get; set; } + + /// + /// Sell item for listing should be an ERC721 item + /// + /// Sell item for listing should be an ERC721 item + /// [{"type":"ERC721","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","token_id":"1"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Digital signature generated by the user for the specific Order + /// + /// Digital signature generated by the user for the specific Order + /// 0x + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Time after which Order is considered active + /// + /// Time after which Order is considered active + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "start_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime StartAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateListingRequestBody {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" EndAt: ").Append(EndAt).Append("\n"); + sb.Append(" ProtocolData: ").Append(ProtocolData).Append("\n"); + sb.Append(" Salt: ").Append(Salt).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" StartAt: ").Append(StartAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateMintRequestRequest.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateMintRequestRequest.cs new file mode 100644 index 00000000..054a9e3a --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateMintRequestRequest.cs @@ -0,0 +1,84 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CreateMintRequestRequest + /// + [DataContract(Name = "CreateMintRequestRequest")] + public partial class CreateMintRequestRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateMintRequestRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// List of nft to be minted (required). + public CreateMintRequestRequest(List assets = default(List)) + { + // to ensure "assets" is required (not null) + if (assets == null) + { + throw new ArgumentNullException("assets is a required property for CreateMintRequestRequest and cannot be null"); + } + this.Assets = assets; + } + + /// + /// List of nft to be minted + /// + /// List of nft to be minted + [DataMember(Name = "assets", IsRequired = true, EmitDefaultValue = true)] + public List Assets { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateMintRequestRequest {\n"); + sb.Append(" Assets: ").Append(Assets).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateMintRequestResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateMintRequestResult.cs new file mode 100644 index 00000000..128154eb --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/CreateMintRequestResult.cs @@ -0,0 +1,125 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// CreateMintRequestResult + /// + [DataContract(Name = "CreateMintRequestResult")] + public partial class CreateMintRequestResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateMintRequestResult() { } + /// + /// Initializes a new instance of the class. + /// + /// imxMintRequestsLimit (required). + /// imxMintRequestsLimitReset (required). + /// imxRemainingMintRequests (required). + /// imxMintRequestsRetryAfter (required). + public CreateMintRequestResult(string imxMintRequestsLimit = default(string), string imxMintRequestsLimitReset = default(string), string imxRemainingMintRequests = default(string), string imxMintRequestsRetryAfter = default(string)) + { + // to ensure "imxMintRequestsLimit" is required (not null) + if (imxMintRequestsLimit == null) + { + throw new ArgumentNullException("imxMintRequestsLimit is a required property for CreateMintRequestResult and cannot be null"); + } + this.ImxMintRequestsLimit = imxMintRequestsLimit; + // to ensure "imxMintRequestsLimitReset" is required (not null) + if (imxMintRequestsLimitReset == null) + { + throw new ArgumentNullException("imxMintRequestsLimitReset is a required property for CreateMintRequestResult and cannot be null"); + } + this.ImxMintRequestsLimitReset = imxMintRequestsLimitReset; + // to ensure "imxRemainingMintRequests" is required (not null) + if (imxRemainingMintRequests == null) + { + throw new ArgumentNullException("imxRemainingMintRequests is a required property for CreateMintRequestResult and cannot be null"); + } + this.ImxRemainingMintRequests = imxRemainingMintRequests; + // to ensure "imxMintRequestsRetryAfter" is required (not null) + if (imxMintRequestsRetryAfter == null) + { + throw new ArgumentNullException("imxMintRequestsRetryAfter is a required property for CreateMintRequestResult and cannot be null"); + } + this.ImxMintRequestsRetryAfter = imxMintRequestsRetryAfter; + } + + /// + /// Gets or Sets ImxMintRequestsLimit + /// + [DataMember(Name = "imx_mint_requests_limit", IsRequired = true, EmitDefaultValue = true)] + public string ImxMintRequestsLimit { get; set; } + + /// + /// Gets or Sets ImxMintRequestsLimitReset + /// + [DataMember(Name = "imx_mint_requests_limit_reset", IsRequired = true, EmitDefaultValue = true)] + public string ImxMintRequestsLimitReset { get; set; } + + /// + /// Gets or Sets ImxRemainingMintRequests + /// + [DataMember(Name = "imx_remaining_mint_requests", IsRequired = true, EmitDefaultValue = true)] + public string ImxRemainingMintRequests { get; set; } + + /// + /// Gets or Sets ImxMintRequestsRetryAfter + /// + [DataMember(Name = "imx_mint_requests_retry_after", IsRequired = true, EmitDefaultValue = true)] + public string ImxMintRequestsRetryAfter { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateMintRequestResult {\n"); + sb.Append(" ImxMintRequestsLimit: ").Append(ImxMintRequestsLimit).Append("\n"); + sb.Append(" ImxMintRequestsLimitReset: ").Append(ImxMintRequestsLimitReset).Append("\n"); + sb.Append(" ImxRemainingMintRequests: ").Append(ImxRemainingMintRequests).Append("\n"); + sb.Append(" ImxMintRequestsRetryAfter: ").Append(ImxMintRequestsRetryAfter).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Deposit.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Deposit.cs new file mode 100644 index 00000000..b144f88d --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Deposit.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The deposit activity details + /// + [DataContract(Name = "Deposit")] + public partial class Deposit + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Deposit() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was deposited to (required). + /// The deposited amount (required). + /// asset (required). + public Deposit(string to = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for Deposit and cannot be null"); + } + this.To = to; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Deposit and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Deposit and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was deposited to + /// + /// The account address the asset was deposited to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public string To { get; set; } + + /// + /// The deposited amount + /// + /// The deposited amount + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Deposit {\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC1155CollectionItem.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC1155CollectionItem.cs new file mode 100644 index 00000000..763f9481 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC1155CollectionItem.cs @@ -0,0 +1,126 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ERC1155CollectionItem + /// + [DataContract(Name = "ERC1155CollectionItem")] + public partial class ERC1155CollectionItem + { + /// + /// Token type user is offering, which in this case is ERC1155 + /// + /// Token type user is offering, which in this case is ERC1155 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC1155COLLECTION for value: ERC1155_COLLECTION + /// + [EnumMember(Value = "ERC1155_COLLECTION")] + ERC1155COLLECTION = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC1155 + /// + /// Token type user is offering, which in this case is ERC1155 + /// ERC1155_COLLECTION + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC1155CollectionItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC1155 (required). + /// Address of ERC1155 collection (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public ERC1155CollectionItem(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string amount = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC1155CollectionItem and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ERC1155CollectionItem and cannot be null"); + } + this.Amount = amount; + } + + /// + /// Address of ERC1155 collection + /// + /// Address of ERC1155 collection + /// 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC1155CollectionItem {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC1155Item.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC1155Item.cs new file mode 100644 index 00000000..cc4f34d6 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC1155Item.cs @@ -0,0 +1,142 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ERC1155Item + /// + [DataContract(Name = "ERC1155Item")] + public partial class ERC1155Item + { + /// + /// Token type user is offering, which in this case is ERC1155 + /// + /// Token type user is offering, which in this case is ERC1155 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC1155 for value: ERC1155 + /// + [EnumMember(Value = "ERC1155")] + ERC1155 = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC1155 + /// + /// Token type user is offering, which in this case is ERC1155 + /// ERC1155 + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC1155Item() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC1155 (required). + /// Address of ERC1155 token (required). + /// ID of ERC1155 token (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public ERC1155Item(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string tokenId = default(string), string amount = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC1155Item and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for ERC1155Item and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ERC1155Item and cannot be null"); + } + this.Amount = amount; + } + + /// + /// Address of ERC1155 token + /// + /// Address of ERC1155 token + /// 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// ID of ERC1155 token + /// + /// ID of ERC1155 token + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC1155Item {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC20Item.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC20Item.cs new file mode 100644 index 00000000..a5ce1c7f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC20Item.cs @@ -0,0 +1,126 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ERC20Item + /// + [DataContract(Name = "ERC20Item")] + public partial class ERC20Item + { + /// + /// Token type user is offering, which in this case is ERC20 + /// + /// Token type user is offering, which in this case is ERC20 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC20 for value: ERC20 + /// + [EnumMember(Value = "ERC20")] + ERC20 = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC20 + /// + /// Token type user is offering, which in this case is ERC20 + /// ERC20 + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC20Item() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC20 (required). + /// Address of ERC20 token (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public ERC20Item(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string amount = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC20Item and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ERC20Item and cannot be null"); + } + this.Amount = amount; + } + + /// + /// Address of ERC20 token + /// + /// Address of ERC20 token + /// 0x0165878A594ca255338adfa4d48449f69242Eb8F + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC20Item {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC721CollectionItem.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC721CollectionItem.cs new file mode 100644 index 00000000..0d2ae71f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC721CollectionItem.cs @@ -0,0 +1,126 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ERC721CollectionItem + /// + [DataContract(Name = "ERC721CollectionItem")] + public partial class ERC721CollectionItem + { + /// + /// Token type user is offering, which in this case is ERC721 + /// + /// Token type user is offering, which in this case is ERC721 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC721COLLECTION for value: ERC721_COLLECTION + /// + [EnumMember(Value = "ERC721_COLLECTION")] + ERC721COLLECTION = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC721 + /// + /// Token type user is offering, which in this case is ERC721 + /// ERC721_COLLECTION + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC721CollectionItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC721 (required). + /// Address of ERC721 collection (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public ERC721CollectionItem(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string amount = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC721CollectionItem and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ERC721CollectionItem and cannot be null"); + } + this.Amount = amount; + } + + /// + /// Address of ERC721 collection + /// + /// Address of ERC721 collection + /// 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC721CollectionItem {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC721Item.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC721Item.cs new file mode 100644 index 00000000..cbecba16 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ERC721Item.cs @@ -0,0 +1,126 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ERC721Item + /// + [DataContract(Name = "ERC721Item")] + public partial class ERC721Item + { + /// + /// Token type user is offering, which in this case is ERC721 + /// + /// Token type user is offering, which in this case is ERC721 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC721 for value: ERC721 + /// + [EnumMember(Value = "ERC721")] + ERC721 = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC721 + /// + /// Token type user is offering, which in this case is ERC721 + /// ERC721 + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC721Item() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC721 (required). + /// Address of ERC721 token (required). + /// ID of ERC721 token (required). + public ERC721Item(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string tokenId = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC721Item and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for ERC721Item and cannot be null"); + } + this.TokenId = tokenId; + } + + /// + /// Address of ERC721 token + /// + /// Address of ERC721 token + /// 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// ID of ERC721 token + /// + /// ID of ERC721 token + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC721Item {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ExpiredOrderStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ExpiredOrderStatus.cs new file mode 100644 index 00000000..3ed9959a --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ExpiredOrderStatus.cs @@ -0,0 +1,93 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ExpiredOrderStatus + /// + [DataContract(Name = "ExpiredOrderStatus")] + public partial class ExpiredOrderStatus + { + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum EXPIRED for value: EXPIRED + /// + [EnumMember(Value = "EXPIRED")] + EXPIRED = 1 + } + + + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ExpiredOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. (required). + public ExpiredOrderStatus(NameEnum name = default(NameEnum)) + { + this.Name = name; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ExpiredOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FailedOrderCancellation.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FailedOrderCancellation.cs new file mode 100644 index 00000000..02a5e2e8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FailedOrderCancellation.cs @@ -0,0 +1,110 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// FailedOrderCancellation + /// + [DataContract(Name = "FailedOrderCancellation")] + public partial class FailedOrderCancellation + { + /// + /// Reason code indicating why the order failed to be cancelled + /// + /// Reason code indicating why the order failed to be cancelled + [JsonConverter(typeof(StringEnumConverter))] + public enum ReasonCodeEnum + { + /// + /// Enum FILLED for value: FILLED + /// + [EnumMember(Value = "FILLED")] + FILLED = 1 + } + + + /// + /// Reason code indicating why the order failed to be cancelled + /// + /// Reason code indicating why the order failed to be cancelled + /// FILLED + [DataMember(Name = "reason_code", IsRequired = true, EmitDefaultValue = true)] + public ReasonCodeEnum ReasonCode { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FailedOrderCancellation() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of the order which failed to be cancelled (required). + /// Reason code indicating why the order failed to be cancelled (required). + public FailedOrderCancellation(string order = default(string), ReasonCodeEnum reasonCode = default(ReasonCodeEnum)) + { + // to ensure "order" is required (not null) + if (order == null) + { + throw new ArgumentNullException("order is a required property for FailedOrderCancellation and cannot be null"); + } + this.Order = order; + this.ReasonCode = reasonCode; + } + + /// + /// ID of the order which failed to be cancelled + /// + /// ID of the order which failed to be cancelled + /// 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + [DataMember(Name = "order", IsRequired = true, EmitDefaultValue = true)] + public string Order { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FailedOrderCancellation {\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Fee.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Fee.cs similarity index 87% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Fee.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Fee.cs index d87854ee..7e448470 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Fee.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Fee.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// Fee @@ -79,7 +79,7 @@ protected Fee() { } /// /// Initializes a new instance of the class. /// - /// Fee in the payment currency (required). + /// Fee payable to recipient upon settlement (required). /// Fee type (required). /// Wallet address of fee recipient (required). public Fee(string amount = default(string), TypeEnum type = default(TypeEnum), string recipientAddress = default(string)) @@ -100,10 +100,10 @@ protected Fee() { } } /// - /// Fee in the payment currency + /// Fee payable to recipient upon settlement /// - /// Fee in the payment currency - /// 1000000000000000000 + /// Fee payable to recipient upon settlement + /// 2250000000000000000 [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] public string Amount { get; set; } @@ -111,7 +111,7 @@ protected Fee() { } /// Wallet address of fee recipient /// /// Wallet address of fee recipient - /// 1390849295786071768276380950238675083608645509683 + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 [DataMember(Name = "recipient_address", IsRequired = true, EmitDefaultValue = true)] public string RecipientAddress { get; set; } diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FillStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FillStatus.cs new file mode 100644 index 00000000..dc4f5140 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FillStatus.cs @@ -0,0 +1,101 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The ratio of the order that has been filled, an order that has been fully filled will have the same numerator and denominator values. + /// + [DataContract(Name = "FillStatus")] + public partial class FillStatus + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FillStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The numerator of the fill status (required). + /// The denominator of the fill status (required). + public FillStatus(string numerator = default(string), string denominator = default(string)) + { + // to ensure "numerator" is required (not null) + if (numerator == null) + { + throw new ArgumentNullException("numerator is a required property for FillStatus and cannot be null"); + } + this.Numerator = numerator; + // to ensure "denominator" is required (not null) + if (denominator == null) + { + throw new ArgumentNullException("denominator is a required property for FillStatus and cannot be null"); + } + this.Denominator = denominator; + } + + /// + /// The numerator of the fill status + /// + /// The numerator of the fill status + /// 1 + [DataMember(Name = "numerator", IsRequired = true, EmitDefaultValue = true)] + public string Numerator { get; set; } + + /// + /// The denominator of the fill status + /// + /// The denominator of the fill status + /// 2 + [DataMember(Name = "denominator", IsRequired = true, EmitDefaultValue = true)] + public string Denominator { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FillStatus {\n"); + sb.Append(" Numerator: ").Append(Numerator).Append("\n"); + sb.Append(" Denominator: ").Append(Denominator).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FilledOrderStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FilledOrderStatus.cs new file mode 100644 index 00000000..bba762f4 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FilledOrderStatus.cs @@ -0,0 +1,93 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// FilledOrderStatus + /// + [DataContract(Name = "FilledOrderStatus")] + public partial class FilledOrderStatus + { + /// + /// A terminal order status indicating that an order has been fulfilled. + /// + /// A terminal order status indicating that an order has been fulfilled. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum FILLED for value: FILLED + /// + [EnumMember(Value = "FILLED")] + FILLED = 1 + } + + + /// + /// A terminal order status indicating that an order has been fulfilled. + /// + /// A terminal order status indicating that an order has been fulfilled. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FilledOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// A terminal order status indicating that an order has been fulfilled. (required). + public FilledOrderStatus(NameEnum name = default(NameEnum)) + { + this.Name = name; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FilledOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillableOrder.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillableOrder.cs new file mode 100644 index 00000000..11b4cfb5 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillableOrder.cs @@ -0,0 +1,108 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// FulfillableOrder + /// + [DataContract(Name = "FulfillableOrder")] + public partial class FulfillableOrder + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FulfillableOrder() { } + /// + /// Initializes a new instance of the class. + /// + /// order (required). + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order. + /// extraData (required). + public FulfillableOrder(Order order = default(Order), string tokenId = default(string), string extraData = default(string)) + { + // to ensure "order" is required (not null) + if (order == null) + { + throw new ArgumentNullException("order is a required property for FulfillableOrder and cannot be null"); + } + this.Order = order; + // to ensure "extraData" is required (not null) + if (extraData == null) + { + throw new ArgumentNullException("extraData is a required property for FulfillableOrder and cannot be null"); + } + this.ExtraData = extraData; + this.TokenId = tokenId; + } + + /// + /// Gets or Sets Order + /// + [DataMember(Name = "order", IsRequired = true, EmitDefaultValue = true)] + public Order Order { get; set; } + + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// 123 + [DataMember(Name = "token_id", EmitDefaultValue = false)] + public string TokenId { get; set; } + + /// + /// Gets or Sets ExtraData + /// + [DataMember(Name = "extra_data", IsRequired = true, EmitDefaultValue = true)] + public string ExtraData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FulfillableOrder {\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" ExtraData: ").Append(ExtraData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillmentData200Response.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillmentData200Response.cs new file mode 100644 index 00000000..d88d624d --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillmentData200Response.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// FulfillmentData200Response + /// + [DataContract(Name = "fulfillment_data_200_response")] + public partial class FulfillmentData200Response + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FulfillmentData200Response() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public FulfillmentData200Response(FulfillmentData200ResponseResult result = default(FulfillmentData200ResponseResult)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for FulfillmentData200Response and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public FulfillmentData200ResponseResult Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FulfillmentData200Response {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillmentData200ResponseResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillmentData200ResponseResult.cs new file mode 100644 index 00000000..c20de202 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillmentData200ResponseResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// FulfillmentData200ResponseResult + /// + [DataContract(Name = "fulfillment_data_200_response_result")] + public partial class FulfillmentData200ResponseResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FulfillmentData200ResponseResult() { } + /// + /// Initializes a new instance of the class. + /// + /// fulfillableOrders (required). + /// unfulfillableOrders (required). + public FulfillmentData200ResponseResult(List fulfillableOrders = default(List), List unfulfillableOrders = default(List)) + { + // to ensure "fulfillableOrders" is required (not null) + if (fulfillableOrders == null) + { + throw new ArgumentNullException("fulfillableOrders is a required property for FulfillmentData200ResponseResult and cannot be null"); + } + this.FulfillableOrders = fulfillableOrders; + // to ensure "unfulfillableOrders" is required (not null) + if (unfulfillableOrders == null) + { + throw new ArgumentNullException("unfulfillableOrders is a required property for FulfillmentData200ResponseResult and cannot be null"); + } + this.UnfulfillableOrders = unfulfillableOrders; + } + + /// + /// Gets or Sets FulfillableOrders + /// + [DataMember(Name = "fulfillable_orders", IsRequired = true, EmitDefaultValue = true)] + public List FulfillableOrders { get; set; } + + /// + /// Gets or Sets UnfulfillableOrders + /// + [DataMember(Name = "unfulfillable_orders", IsRequired = true, EmitDefaultValue = true)] + public List UnfulfillableOrders { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FulfillmentData200ResponseResult {\n"); + sb.Append(" FulfillableOrders: ").Append(FulfillableOrders).Append("\n"); + sb.Append(" UnfulfillableOrders: ").Append(UnfulfillableOrders).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillmentDataRequest.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillmentDataRequest.cs new file mode 100644 index 00000000..35181fdf --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/FulfillmentDataRequest.cs @@ -0,0 +1,120 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// FulfillmentDataRequest + /// + [DataContract(Name = "FulfillmentDataRequest")] + public partial class FulfillmentDataRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FulfillmentDataRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// orderId (required). + /// Address of the intended account fulfilling the order (required). + /// fees (required). + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order. + public FulfillmentDataRequest(Guid orderId = default(Guid), string takerAddress = default(string), List fees = default(List), string tokenId = default(string)) + { + this.OrderId = orderId; + // to ensure "takerAddress" is required (not null) + if (takerAddress == null) + { + throw new ArgumentNullException("takerAddress is a required property for FulfillmentDataRequest and cannot be null"); + } + this.TakerAddress = takerAddress; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for FulfillmentDataRequest and cannot be null"); + } + this.Fees = fees; + this.TokenId = tokenId; + } + + /// + /// Gets or Sets OrderId + /// + [DataMember(Name = "order_id", IsRequired = true, EmitDefaultValue = true)] + public Guid OrderId { get; set; } + + /// + /// Address of the intended account fulfilling the order + /// + /// Address of the intended account fulfilling the order + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "taker_address", IsRequired = true, EmitDefaultValue = true)] + public string TakerAddress { get; set; } + + /// + /// Gets or Sets Fees + /// + /// [{"type":"TAKER_ECOSYSTEM","amount":"2250000000000000000","recipient_address":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233"}] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// 123 + [DataMember(Name = "token_id", EmitDefaultValue = false)] + public string TokenId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FulfillmentDataRequest {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" TakerAddress: ").Append(TakerAddress).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetActivityResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetActivityResult.cs new file mode 100644 index 00000000..38c2a59b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetActivityResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Single activity + /// + [DataContract(Name = "GetActivityResult")] + public partial class GetActivityResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetActivityResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetActivityResult(Activity result = default(Activity)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetActivityResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Activity Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetActivityResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetCollectionResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetCollectionResult.cs new file mode 100644 index 00000000..856931f6 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetCollectionResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Single Collection + /// + [DataContract(Name = "GetCollectionResult")] + public partial class GetCollectionResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetCollectionResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetCollectionResult(Collection result = default(Collection)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetCollectionResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Collection Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetCollectionResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetLinkedAddressesRes.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetLinkedAddressesRes.cs new file mode 100644 index 00000000..1ad4834f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetLinkedAddressesRes.cs @@ -0,0 +1,84 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// GetLinkedAddressesRes + /// + [DataContract(Name = "GetLinkedAddressesRes")] + public partial class GetLinkedAddressesRes + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetLinkedAddressesRes() { } + /// + /// Initializes a new instance of the class. + /// + /// The user's list of linked addresses (required). + public GetLinkedAddressesRes(List linkedAddresses = default(List)) + { + // to ensure "linkedAddresses" is required (not null) + if (linkedAddresses == null) + { + throw new ArgumentNullException("linkedAddresses is a required property for GetLinkedAddressesRes and cannot be null"); + } + this.LinkedAddresses = linkedAddresses; + } + + /// + /// The user's list of linked addresses + /// + /// The user's list of linked addresses + [DataMember(Name = "linked_addresses", IsRequired = true, EmitDefaultValue = true)] + public List LinkedAddresses { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetLinkedAddressesRes {\n"); + sb.Append(" LinkedAddresses: ").Append(LinkedAddresses).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetMetadataResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetMetadataResult.cs new file mode 100644 index 00000000..b4d2b6f0 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetMetadataResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Single metadata + /// + [DataContract(Name = "GetMetadataResult")] + public partial class GetMetadataResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetMetadataResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetMetadataResult(Metadata result = default(Metadata)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetMetadataResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Metadata Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetMetadataResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetMintRequestResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetMintRequestResult.cs new file mode 100644 index 00000000..3ecd3f02 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetMintRequestResult.cs @@ -0,0 +1,228 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// GetMintRequestResult + /// + [DataContract(Name = "GetMintRequestResult")] + public partial class GetMintRequestResult + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public MintRequestStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetMintRequestResult() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of the contract (required). + /// The reference id of this mint request (required). + /// The address of the owner of the NFT (required). + /// An `uint256` token id as string. Only available when the mint request succeeds (required). + /// An `uint256` amount as string. Only relevant for mint requests on ERC1155 contracts. + /// The id of the mint activity associated with this mint request. + /// The transaction hash of the activity (required). + /// When the mint request was created (required). + /// When the mint request was last updated (required). + /// error (required). + /// status (required). + public GetMintRequestResult(Chain chain = default(Chain), string collectionAddress = default(string), string referenceId = default(string), string ownerAddress = default(string), string tokenId = default(string), string amount = default(string), Guid? activityId = default(Guid?), string transactionHash = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), MintRequestErrorMessage error = default(MintRequestErrorMessage), MintRequestStatus status = default(MintRequestStatus)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for GetMintRequestResult and cannot be null"); + } + this.Chain = chain; + // to ensure "collectionAddress" is required (not null) + if (collectionAddress == null) + { + throw new ArgumentNullException("collectionAddress is a required property for GetMintRequestResult and cannot be null"); + } + this.CollectionAddress = collectionAddress; + // to ensure "referenceId" is required (not null) + if (referenceId == null) + { + throw new ArgumentNullException("referenceId is a required property for GetMintRequestResult and cannot be null"); + } + this.ReferenceId = referenceId; + // to ensure "ownerAddress" is required (not null) + if (ownerAddress == null) + { + throw new ArgumentNullException("ownerAddress is a required property for GetMintRequestResult and cannot be null"); + } + this.OwnerAddress = ownerAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for GetMintRequestResult and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "transactionHash" is required (not null) + if (transactionHash == null) + { + throw new ArgumentNullException("transactionHash is a required property for GetMintRequestResult and cannot be null"); + } + this.TransactionHash = transactionHash; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + // to ensure "error" is required (not null) + if (error == null) + { + throw new ArgumentNullException("error is a required property for GetMintRequestResult and cannot be null"); + } + this.Error = error; + this.Status = status; + this.Amount = amount; + this.ActivityId = activityId; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of the contract + /// + /// The address of the contract + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "collection_address", IsRequired = true, EmitDefaultValue = true)] + public string CollectionAddress { get; set; } + + /// + /// The reference id of this mint request + /// + /// The reference id of this mint request + [DataMember(Name = "reference_id", IsRequired = true, EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// The address of the owner of the NFT + /// + /// The address of the owner of the NFT + [DataMember(Name = "owner_address", IsRequired = true, EmitDefaultValue = true)] + public string OwnerAddress { get; set; } + + /// + /// An `uint256` token id as string. Only available when the mint request succeeds + /// + /// An `uint256` token id as string. Only available when the mint request succeeds + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// An `uint256` amount as string. Only relevant for mint requests on ERC1155 contracts + /// + /// An `uint256` amount as string. Only relevant for mint requests on ERC1155 contracts + /// 1 + [DataMember(Name = "amount", EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// The id of the mint activity associated with this mint request + /// + /// The id of the mint activity associated with this mint request + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "activity_id", EmitDefaultValue = true)] + public Guid? ActivityId { get; set; } + + /// + /// The transaction hash of the activity + /// + /// The transaction hash of the activity + /// 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + [DataMember(Name = "transaction_hash", IsRequired = true, EmitDefaultValue = true)] + public string TransactionHash { get; set; } + + /// + /// When the mint request was created + /// + /// When the mint request was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// When the mint request was last updated + /// + /// When the mint request was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets Error + /// + [DataMember(Name = "error", IsRequired = true, EmitDefaultValue = true)] + public MintRequestErrorMessage Error { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetMintRequestResult {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" CollectionAddress: ").Append(CollectionAddress).Append("\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" OwnerAddress: ").Append(OwnerAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" TransactionHash: ").Append(TransactionHash).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Error: ").Append(Error).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetNFTResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetNFTResult.cs new file mode 100644 index 00000000..fdb276ba --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetNFTResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Single NFT + /// + [DataContract(Name = "GetNFTResult")] + public partial class GetNFTResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetNFTResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetNFTResult(NFT result = default(NFT)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetNFTResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public NFT Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNFTResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetTokenResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetTokenResult.cs new file mode 100644 index 00000000..99ee24d6 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/GetTokenResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Single Token + /// + [DataContract(Name = "GetTokenResult")] + public partial class GetTokenResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetTokenResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetTokenResult(Token result = default(Token)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetTokenResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Token Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetTokenResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/InactiveOrderStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/InactiveOrderStatus.cs new file mode 100644 index 00000000..ffdac890 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/InactiveOrderStatus.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// InactiveOrderStatus + /// + [DataContract(Name = "InactiveOrderStatus")] + public partial class InactiveOrderStatus + { + /// + /// The order status that indicates an order cannot be fulfilled. + /// + /// The order status that indicates an order cannot be fulfilled. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum INACTIVE for value: INACTIVE + /// + [EnumMember(Value = "INACTIVE")] + INACTIVE = 1 + } + + + /// + /// The order status that indicates an order cannot be fulfilled. + /// + /// The order status that indicates an order cannot be fulfilled. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InactiveOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The order status that indicates an order cannot be fulfilled. (required). + /// Whether the order offerer has sufficient approvals (required). + /// Whether the order offerer still has sufficient balance to complete the order (required). + public InactiveOrderStatus(NameEnum name = default(NameEnum), bool sufficientApprovals = default(bool), bool sufficientBalances = default(bool)) + { + this.Name = name; + this.SufficientApprovals = sufficientApprovals; + this.SufficientBalances = sufficientBalances; + } + + /// + /// Whether the order offerer has sufficient approvals + /// + /// Whether the order offerer has sufficient approvals + /// false + [DataMember(Name = "sufficient_approvals", IsRequired = true, EmitDefaultValue = true)] + public bool SufficientApprovals { get; set; } + + /// + /// Whether the order offerer still has sufficient balance to complete the order + /// + /// Whether the order offerer still has sufficient balance to complete the order + /// false + [DataMember(Name = "sufficient_balances", IsRequired = true, EmitDefaultValue = true)] + public bool SufficientBalances { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InactiveOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" SufficientApprovals: ").Append(SufficientApprovals).Append("\n"); + sb.Append(" SufficientBalances: ").Append(SufficientBalances).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Item.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Item.cs new file mode 100644 index 00000000..cd8ea745 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Item.cs @@ -0,0 +1,434 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.Model +{ + /// + /// Item + /// + [JsonConverter(typeof(ItemJsonConverter))] + [DataContract(Name = "Item")] + public partial class Item : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of NativeItem. + public Item(NativeItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC20Item. + public Item(ERC20Item actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC721Item. + public Item(ERC721Item actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC1155Item. + public Item(ERC1155Item actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC721CollectionItem. + public Item(ERC721CollectionItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC1155CollectionItem. + public Item(ERC1155CollectionItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(ERC1155CollectionItem) || value is ERC1155CollectionItem) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC1155Item) || value is ERC1155Item) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC20Item) || value is ERC20Item) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC721CollectionItem) || value is ERC721CollectionItem) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC721Item) || value is ERC721Item) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(NativeItem) || value is NativeItem) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: ERC1155CollectionItem, ERC1155Item, ERC20Item, ERC721CollectionItem, ERC721Item, NativeItem"); + } + } + } + + /// + /// Get the actual instance of `NativeItem`. If the actual instance is not `NativeItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of NativeItem + public NativeItem GetNativeItem() + { + return (NativeItem)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC20Item`. If the actual instance is not `ERC20Item`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC20Item + public ERC20Item GetERC20Item() + { + return (ERC20Item)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC721Item`. If the actual instance is not `ERC721Item`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC721Item + public ERC721Item GetERC721Item() + { + return (ERC721Item)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC1155Item`. If the actual instance is not `ERC1155Item`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC1155Item + public ERC1155Item GetERC1155Item() + { + return (ERC1155Item)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC721CollectionItem`. If the actual instance is not `ERC721CollectionItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC721CollectionItem + public ERC721CollectionItem GetERC721CollectionItem() + { + return (ERC721CollectionItem)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC1155CollectionItem`. If the actual instance is not `ERC1155CollectionItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC1155CollectionItem + public ERC1155CollectionItem GetERC1155CollectionItem() + { + return (ERC1155CollectionItem)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Item {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, Item.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of Item + /// + /// JSON string + /// An instance of Item + public static Item FromJson(string jsonString) + { + Item newItem = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newItem; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC1155CollectionItem).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC1155CollectionItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC1155CollectionItem: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC1155Item).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC1155Item"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC1155Item: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC20Item).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC20Item"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC20Item: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC721CollectionItem).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC721CollectionItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC721CollectionItem: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC721Item).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC721Item"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC721Item: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(NativeItem).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("NativeItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into NativeItem: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newItem; + } + + } + + /// + /// Custom JSON converter for Item + /// + public class ItemJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(Item).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return Item.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return Item.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/LastTrade.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/LastTrade.cs similarity index 76% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/LastTrade.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/LastTrade.cs index 6702b4d5..88fa7782 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/LastTrade.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/LastTrade.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,12 +21,12 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// Last trade + /// Most recent trade /// [DataContract(Name = "LastTrade")] public partial class LastTrade @@ -40,13 +40,20 @@ protected LastTrade() { } /// Initializes a new instance of the class. /// /// Trade ID (required). + /// ETH Address of collection that the asset belongs to (required). /// Token id of the traded asset (uint256 as string) (required). /// Price details, list of payments involved in this trade (required). /// Amount of the trade (uint256 as string) (required). /// When the trade was created (required). - public LastTrade(Guid tradeId = default(Guid), string tokenId = default(string), List priceDetails = default(List), string amount = default(string), DateTime createdAt = default(DateTime)) + public LastTrade(Guid tradeId = default(Guid), string contractAddress = default(string), string tokenId = default(string), List priceDetails = default(List), string amount = default(string), DateTime createdAt = default(DateTime)) { this.TradeId = tradeId; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for LastTrade and cannot be null"); + } + this.ContractAddress = contractAddress; // to ensure "tokenId" is required (not null) if (tokenId == null) { @@ -76,6 +83,14 @@ protected LastTrade() { } [DataMember(Name = "trade_id", IsRequired = true, EmitDefaultValue = true)] public Guid TradeId { get; set; } + /// + /// ETH Address of collection that the asset belongs to + /// + /// ETH Address of collection that the asset belongs to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + /// /// Token id of the traded asset (uint256 as string) /// @@ -89,7 +104,7 @@ protected LastTrade() { } /// /// Price details, list of payments involved in this trade [DataMember(Name = "price_details", IsRequired = true, EmitDefaultValue = true)] - public List PriceDetails { get; set; } + public List PriceDetails { get; set; } /// /// Amount of the trade (uint256 as string) @@ -116,6 +131,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class LastTrade {\n"); sb.Append(" TradeId: ").Append(TradeId).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); sb.Append(" TokenId: ").Append(TokenId).Append("\n"); sb.Append(" PriceDetails: ").Append(PriceDetails).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/LinkWalletV2Request.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/LinkWalletV2Request.cs new file mode 100644 index 00000000..38a69626 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/LinkWalletV2Request.cs @@ -0,0 +1,131 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Link wallet V2 request + /// + [DataContract(Name = "LinkWalletV2Request")] + public partial class LinkWalletV2Request + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LinkWalletV2Request() { } + /// + /// Initializes a new instance of the class. + /// + /// This should be the EIP-6963 rdns value, if you're unable to get the rdns value you can provide \"External\". If using WalletConnect then provide \"WalletConnect\". (required). + /// The address of the external wallet being linked to Passport (required). + /// The EIP-712 signature (required). + /// A unique identifier for the signature (required). + public LinkWalletV2Request(string type = default(string), string walletAddress = default(string), string signature = default(string), string nonce = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for LinkWalletV2Request and cannot be null"); + } + this.Type = type; + // to ensure "walletAddress" is required (not null) + if (walletAddress == null) + { + throw new ArgumentNullException("walletAddress is a required property for LinkWalletV2Request and cannot be null"); + } + this.WalletAddress = walletAddress; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for LinkWalletV2Request and cannot be null"); + } + this.Signature = signature; + // to ensure "nonce" is required (not null) + if (nonce == null) + { + throw new ArgumentNullException("nonce is a required property for LinkWalletV2Request and cannot be null"); + } + this.Nonce = nonce; + } + + /// + /// This should be the EIP-6963 rdns value, if you're unable to get the rdns value you can provide \"External\". If using WalletConnect then provide \"WalletConnect\". + /// + /// This should be the EIP-6963 rdns value, if you're unable to get the rdns value you can provide \"External\". If using WalletConnect then provide \"WalletConnect\". + /// io.metamask + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// The address of the external wallet being linked to Passport + /// + /// The address of the external wallet being linked to Passport + /// 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + [DataMember(Name = "wallet_address", IsRequired = true, EmitDefaultValue = true)] + public string WalletAddress { get; set; } + + /// + /// The EIP-712 signature + /// + /// The EIP-712 signature + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// A unique identifier for the signature + /// + /// A unique identifier for the signature + [DataMember(Name = "nonce", IsRequired = true, EmitDefaultValue = true)] + public string Nonce { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LinkWalletV2Request {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" WalletAddress: ").Append(WalletAddress).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" Nonce: ").Append(Nonce).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListActivitiesResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListActivitiesResult.cs new file mode 100644 index 00000000..0a5fd149 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListActivitiesResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// List activities response + /// + [DataContract(Name = "ListActivitiesResult")] + public partial class ListActivitiesResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListActivitiesResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of activities (required). + /// page (required). + public ListActivitiesResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListActivitiesResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListActivitiesResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of activities + /// + /// List of activities + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListActivitiesResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListBidsResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListBidsResult.cs new file mode 100644 index 00000000..84e712c1 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListBidsResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListBidsResult + /// + [DataContract(Name = "ListBidsResult")] + public partial class ListBidsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListBidsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// page (required). + /// result (required). + public ListBidsResult(Page page = default(Page), List result = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListBidsResult and cannot be null"); + } + this.Page = page; + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListBidsResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListBidsResult {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListChainsResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListChainsResult.cs new file mode 100644 index 00000000..07ae41fd --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListChainsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListChainsResult + /// + [DataContract(Name = "ListChainsResult")] + public partial class ListChainsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListChainsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of chains (required). + /// page (required). + public ListChainsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListChainsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListChainsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of chains + /// + /// List of chains + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListChainsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListCollectionBidsResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListCollectionBidsResult.cs new file mode 100644 index 00000000..a08b9be6 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListCollectionBidsResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListCollectionBidsResult + /// + [DataContract(Name = "ListCollectionBidsResult")] + public partial class ListCollectionBidsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListCollectionBidsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// page (required). + /// result (required). + public ListCollectionBidsResult(Page page = default(Page), List result = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListCollectionBidsResult and cannot be null"); + } + this.Page = page; + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListCollectionBidsResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListCollectionBidsResult {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListCollectionOwnersResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListCollectionOwnersResult.cs new file mode 100644 index 00000000..263c1571 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListCollectionOwnersResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListCollectionOwnersResult + /// + [DataContract(Name = "ListCollectionOwnersResult")] + public partial class ListCollectionOwnersResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListCollectionOwnersResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of NFT owners (required). + /// page (required). + public ListCollectionOwnersResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListCollectionOwnersResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListCollectionOwnersResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of NFT owners + /// + /// List of NFT owners + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListCollectionOwnersResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListCollectionsResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListCollectionsResult.cs new file mode 100644 index 00000000..0f1df6ff --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListCollectionsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListCollectionsResult + /// + [DataContract(Name = "ListCollectionsResult")] + public partial class ListCollectionsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListCollectionsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of collections (required). + /// page (required). + public ListCollectionsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListCollectionsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListCollectionsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of collections + /// + /// List of collections + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListCollectionsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListListingsResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListListingsResult.cs new file mode 100644 index 00000000..b75aeafa --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListListingsResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListListingsResult + /// + [DataContract(Name = "ListListingsResult")] + public partial class ListListingsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListListingsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// page (required). + /// result (required). + public ListListingsResult(Page page = default(Page), List result = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListListingsResult and cannot be null"); + } + this.Page = page; + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListListingsResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListListingsResult {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListMetadataResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListMetadataResult.cs new file mode 100644 index 00000000..b80d7f6b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListMetadataResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListMetadataResult + /// + [DataContract(Name = "ListMetadataResult")] + public partial class ListMetadataResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListMetadataResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of metadata (required). + /// page (required). + public ListMetadataResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListMetadataResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListMetadataResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of metadata + /// + /// List of metadata + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListMetadataResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListMintRequestsResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListMintRequestsResult.cs new file mode 100644 index 00000000..b4a87029 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListMintRequestsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// List mint requests + /// + [DataContract(Name = "ListMintRequestsResult")] + public partial class ListMintRequestsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListMintRequestsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of mint requests (required). + /// page (required). + public ListMintRequestsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListMintRequestsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListMintRequestsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of mint requests + /// + /// List of mint requests + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListMintRequestsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListNFTOwnersResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListNFTOwnersResult.cs new file mode 100644 index 00000000..8cbf3d39 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListNFTOwnersResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListNFTOwnersResult + /// + [DataContract(Name = "ListNFTOwnersResult")] + public partial class ListNFTOwnersResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListNFTOwnersResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of nft owners (required). + /// page (required). + public ListNFTOwnersResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListNFTOwnersResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListNFTOwnersResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of nft owners + /// + /// List of nft owners + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListNFTOwnersResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListNFTsByOwnerResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListNFTsByOwnerResult.cs new file mode 100644 index 00000000..04da7404 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListNFTsByOwnerResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListNFTsByOwnerResult + /// + [DataContract(Name = "ListNFTsByOwnerResult")] + public partial class ListNFTsByOwnerResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListNFTsByOwnerResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of NFTs by owner (required). + /// page (required). + public ListNFTsByOwnerResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListNFTsByOwnerResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListNFTsByOwnerResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of NFTs by owner + /// + /// List of NFTs by owner + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListNFTsByOwnerResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListNFTsResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListNFTsResult.cs new file mode 100644 index 00000000..c274476d --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListNFTsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListNFTsResult + /// + [DataContract(Name = "ListNFTsResult")] + public partial class ListNFTsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListNFTsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of NFTs (required). + /// page (required). + public ListNFTsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListNFTsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListNFTsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of NFTs + /// + /// List of NFTs + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListNFTsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListTokensResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListTokensResult.cs new file mode 100644 index 00000000..c9741dc7 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListTokensResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListTokensResult + /// + [DataContract(Name = "ListTokensResult")] + public partial class ListTokensResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListTokensResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of tokens (required). + /// page (required). + public ListTokensResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListTokensResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListTokensResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of tokens + /// + /// List of tokens + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListTokensResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListTradeResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListTradeResult.cs new file mode 100644 index 00000000..c95a96d8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListTradeResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListTradeResult + /// + [DataContract(Name = "ListTradeResult")] + public partial class ListTradeResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListTradeResult() { } + /// + /// Initializes a new instance of the class. + /// + /// page (required). + /// result (required). + public ListTradeResult(Page page = default(Page), List result = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListTradeResult and cannot be null"); + } + this.Page = page; + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListTradeResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListTradeResult {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Listing.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Listing.cs similarity index 57% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Listing.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Listing.cs index 2d0b08ae..7cdd2a2c 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Listing.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Listing.cs @@ -1,70 +1,92 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// Listing + /// Listing /// [DataContract(Name = "Listing")] - public class Listing + public partial class Listing { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Listing() - { - } - + protected Listing() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Global Order identifier (required). /// priceDetails (required). /// Token ID (required). + /// ETH Address of collection that the asset belongs to (required). /// ETH Address of listing creator (required). /// Amount of token included in the listing (required). - public Listing(string listingId = default, PriceDetails priceDetails = default, string tokenId = default, - string creator = default, string amount = default) + public Listing(string listingId = default(string), MarketPriceDetails priceDetails = default(MarketPriceDetails), string tokenId = default(string), string contractAddress = default(string), string creator = default(string), string amount = default(string)) { // to ensure "listingId" is required (not null) if (listingId == null) + { throw new ArgumentNullException("listingId is a required property for Listing and cannot be null"); - ListingId = listingId; + } + this.ListingId = listingId; // to ensure "priceDetails" is required (not null) if (priceDetails == null) + { throw new ArgumentNullException("priceDetails is a required property for Listing and cannot be null"); - PriceDetails = priceDetails; + } + this.PriceDetails = priceDetails; // to ensure "tokenId" is required (not null) if (tokenId == null) + { throw new ArgumentNullException("tokenId is a required property for Listing and cannot be null"); - TokenId = tokenId; + } + this.TokenId = tokenId; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for Listing and cannot be null"); + } + this.ContractAddress = contractAddress; // to ensure "creator" is required (not null) if (creator == null) + { throw new ArgumentNullException("creator is a required property for Listing and cannot be null"); - Creator = creator; + } + this.Creator = creator; // to ensure "amount" is required (not null) if (amount == null) + { throw new ArgumentNullException("amount is a required property for Listing and cannot be null"); - Amount = amount; + } + this.Amount = amount; } /// - /// Global Order identifier + /// Global Order identifier /// /// Global Order identifier /// 018792C9-4AD7-8EC4-4038-9E05C598534A @@ -72,13 +94,13 @@ public Listing(string listingId = default, PriceDetails priceDetails = default, public string ListingId { get; set; } /// - /// Gets or Sets PriceDetails + /// Gets or Sets PriceDetails /// [DataMember(Name = "price_details", IsRequired = true, EmitDefaultValue = true)] - public PriceDetails PriceDetails { get; set; } + public MarketPriceDetails PriceDetails { get; set; } /// - /// Token ID + /// Token ID /// /// Token ID /// 1 @@ -86,15 +108,23 @@ public Listing(string listingId = default, PriceDetails priceDetails = default, public string TokenId { get; set; } /// - /// ETH Address of listing creator + /// ETH Address of collection that the asset belongs to + /// + /// ETH Address of collection that the asset belongs to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// ETH Address of listing creator /// /// ETH Address of listing creator - /// 1334120697966828340666039427861105342297873844179 + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 [DataMember(Name = "creator", IsRequired = true, EmitDefaultValue = true)] public string Creator { get; set; } /// - /// Amount of token included in the listing + /// Amount of token included in the listing /// /// Amount of token included in the listing /// 1 @@ -102,16 +132,17 @@ public Listing(string listingId = default, PriceDetails priceDetails = default, public string Amount { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Listing {\n"); sb.Append(" ListingId: ").Append(ListingId).Append("\n"); sb.Append(" PriceDetails: ").Append(PriceDetails).Append("\n"); sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); sb.Append(" Creator: ").Append(Creator).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append("}\n"); @@ -119,12 +150,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListingResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListingResult.cs new file mode 100644 index 00000000..fc5603d3 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ListingResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ListingResult + /// + [DataContract(Name = "ListingResult")] + public partial class ListingResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListingResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public ListingResult(Order result = default(Order)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListingResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Order Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListingResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Market.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Market.cs similarity index 56% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Market.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Market.cs index 9d76d9bd..de93ff01 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Market.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Market.cs @@ -1,71 +1,82 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// Market data + /// Market data /// [DataContract(Name = "Market")] - public class Market + public partial class Market { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected Market() - { - } - + protected Market() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// floorListing (required). + /// Cheapest active listing (required). /// lastTrade (required). - public Market(Listing floorListing = default, LastTrade lastTrade = default) + public Market(Listing floorListing = default(Listing), LastTrade lastTrade = default(LastTrade)) { // to ensure "floorListing" is required (not null) if (floorListing == null) + { throw new ArgumentNullException("floorListing is a required property for Market and cannot be null"); - FloorListing = floorListing; + } + this.FloorListing = floorListing; // to ensure "lastTrade" is required (not null) if (lastTrade == null) + { throw new ArgumentNullException("lastTrade is a required property for Market and cannot be null"); - LastTrade = lastTrade; + } + this.LastTrade = lastTrade; } /// - /// Gets or Sets FloorListing + /// Cheapest active listing /// + /// Cheapest active listing [DataMember(Name = "floor_listing", IsRequired = true, EmitDefaultValue = true)] public Listing FloorListing { get; set; } /// - /// Gets or Sets LastTrade + /// Gets or Sets LastTrade /// [DataMember(Name = "last_trade", IsRequired = true, EmitDefaultValue = true)] public LastTrade LastTrade { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Market {\n"); sb.Append(" FloorListing: ").Append(FloorListing).Append("\n"); sb.Append(" LastTrade: ").Append(LastTrade).Append("\n"); @@ -74,12 +85,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketNft.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketNft.cs new file mode 100644 index 00000000..c6523b48 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketNft.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// NFT market data + /// + [DataContract(Name = "MarketNft")] + public partial class MarketNft + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MarketNft() { } + /// + /// Initializes a new instance of the class. + /// + /// lastTrade (required). + public MarketNft(LastTrade lastTrade = default(LastTrade)) + { + // to ensure "lastTrade" is required (not null) + if (lastTrade == null) + { + throw new ArgumentNullException("lastTrade is a required property for MarketNft and cannot be null"); + } + this.LastTrade = lastTrade; + } + + /// + /// Gets or Sets LastTrade + /// + [DataMember(Name = "last_trade", IsRequired = true, EmitDefaultValue = true)] + public LastTrade LastTrade { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MarketNft {\n"); + sb.Append(" LastTrade: ").Append(LastTrade).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetails.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceDetails.cs similarity index 71% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetails.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceDetails.cs index ba179ea7..70a6b6d6 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetails.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceDetails.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,52 +21,52 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// Price details + /// Market Price details /// - [DataContract(Name = "PriceDetails")] - public partial class PriceDetails + [DataContract(Name = "MarketPriceDetails")] + public partial class MarketPriceDetails { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected PriceDetails() { } + protected MarketPriceDetails() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// token (required). /// amount (required). /// feeInclusiveAmount (required). /// fees (required). - public PriceDetails(PriceDetailsToken token = default(PriceDetailsToken), PaymentAmount amount = default(PaymentAmount), PaymentAmount feeInclusiveAmount = default(PaymentAmount), List fees = default(List)) + public MarketPriceDetails(MarketPriceDetailsToken token = default(MarketPriceDetailsToken), PaymentAmount amount = default(PaymentAmount), PaymentAmount feeInclusiveAmount = default(PaymentAmount), List fees = default(List)) { // to ensure "token" is required (not null) if (token == null) { - throw new ArgumentNullException("token is a required property for PriceDetails and cannot be null"); + throw new ArgumentNullException("token is a required property for MarketPriceDetails and cannot be null"); } this.Token = token; // to ensure "amount" is required (not null) if (amount == null) { - throw new ArgumentNullException("amount is a required property for PriceDetails and cannot be null"); + throw new ArgumentNullException("amount is a required property for MarketPriceDetails and cannot be null"); } this.Amount = amount; // to ensure "feeInclusiveAmount" is required (not null) if (feeInclusiveAmount == null) { - throw new ArgumentNullException("feeInclusiveAmount is a required property for PriceDetails and cannot be null"); + throw new ArgumentNullException("feeInclusiveAmount is a required property for MarketPriceDetails and cannot be null"); } this.FeeInclusiveAmount = feeInclusiveAmount; // to ensure "fees" is required (not null) if (fees == null) { - throw new ArgumentNullException("fees is a required property for PriceDetails and cannot be null"); + throw new ArgumentNullException("fees is a required property for MarketPriceDetails and cannot be null"); } this.Fees = fees; } @@ -75,7 +75,7 @@ protected PriceDetails() { } /// Gets or Sets Token /// [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] - public PriceDetailsToken Token { get; set; } + public MarketPriceDetailsToken Token { get; set; } /// /// Gets or Sets Amount @@ -92,9 +92,9 @@ protected PriceDetails() { } /// /// Gets or Sets Fees /// - /// [{"type":"TAKER_ECOSYSTEM","recipient_address":1390849295786071768276380950238675083608645509683,"amount":"1000000000000000000"}] + /// [{"type":"TAKER_ECOSYSTEM","recipient_address":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233","amount":"1000000000000000000"}] [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] - public List Fees { get; set; } + public List Fees { get; set; } /// /// Returns the string presentation of the object @@ -103,7 +103,7 @@ protected PriceDetails() { } public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class PriceDetails {\n"); + sb.Append("class MarketPriceDetails {\n"); sb.Append(" Token: ").Append(Token).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append(" FeeInclusiveAmount: ").Append(FeeInclusiveAmount).Append("\n"); diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceDetailsToken.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceDetailsToken.cs new file mode 100644 index 00000000..ee9abe30 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceDetailsToken.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.Model +{ + /// + /// Token details + /// + [JsonConverter(typeof(MarketPriceDetailsTokenJsonConverter))] + [DataContract(Name = "MarketPriceDetails_token")] + public partial class MarketPriceDetailsToken : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of MarketPriceNativeToken. + public MarketPriceDetailsToken(MarketPriceNativeToken actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of MarketPriceERC20Token. + public MarketPriceDetailsToken(MarketPriceERC20Token actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(MarketPriceERC20Token) || value is MarketPriceERC20Token) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(MarketPriceNativeToken) || value is MarketPriceNativeToken) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: MarketPriceERC20Token, MarketPriceNativeToken"); + } + } + } + + /// + /// Get the actual instance of `MarketPriceNativeToken`. If the actual instance is not `MarketPriceNativeToken`, + /// the InvalidClassException will be thrown + /// + /// An instance of MarketPriceNativeToken + public MarketPriceNativeToken GetMarketPriceNativeToken() + { + return (MarketPriceNativeToken)this.ActualInstance; + } + + /// + /// Get the actual instance of `MarketPriceERC20Token`. If the actual instance is not `MarketPriceERC20Token`, + /// the InvalidClassException will be thrown + /// + /// An instance of MarketPriceERC20Token + public MarketPriceERC20Token GetMarketPriceERC20Token() + { + return (MarketPriceERC20Token)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MarketPriceDetailsToken {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, MarketPriceDetailsToken.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of MarketPriceDetailsToken + /// + /// JSON string + /// An instance of MarketPriceDetailsToken + public static MarketPriceDetailsToken FromJson(string jsonString) + { + MarketPriceDetailsToken newMarketPriceDetailsToken = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newMarketPriceDetailsToken; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(MarketPriceERC20Token).GetProperty("AdditionalProperties") == null) + { + newMarketPriceDetailsToken = new MarketPriceDetailsToken(JsonConvert.DeserializeObject(jsonString, MarketPriceDetailsToken.SerializerSettings)); + } + else + { + newMarketPriceDetailsToken = new MarketPriceDetailsToken(JsonConvert.DeserializeObject(jsonString, MarketPriceDetailsToken.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("MarketPriceERC20Token"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into MarketPriceERC20Token: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(MarketPriceNativeToken).GetProperty("AdditionalProperties") == null) + { + newMarketPriceDetailsToken = new MarketPriceDetailsToken(JsonConvert.DeserializeObject(jsonString, MarketPriceDetailsToken.SerializerSettings)); + } + else + { + newMarketPriceDetailsToken = new MarketPriceDetailsToken(JsonConvert.DeserializeObject(jsonString, MarketPriceDetailsToken.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("MarketPriceNativeToken"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into MarketPriceNativeToken: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newMarketPriceDetailsToken; + } + + } + + /// + /// Custom JSON converter for MarketPriceDetailsToken + /// + public class MarketPriceDetailsTokenJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(MarketPriceDetailsToken).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return MarketPriceDetailsToken.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return MarketPriceDetailsToken.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/ERC20Token.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceERC20Token.cs similarity index 79% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/ERC20Token.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceERC20Token.cs index 7ed95aa4..94f8d08e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/ERC20Token.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceERC20Token.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,15 +21,15 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// ERC20Token + /// MarketPriceERC20Token /// - [DataContract(Name = "ERC20Token")] - public partial class ERC20Token + [DataContract(Name = "MarketPriceERC20Token")] + public partial class MarketPriceERC20Token { /// /// Token type user is offering, which in this case is ERC20 @@ -54,36 +54,36 @@ public enum TypeEnum [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public TypeEnum Type { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected ERC20Token() { } + protected MarketPriceERC20Token() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Token type user is offering, which in this case is ERC20 (required). /// Address of ERC20 token (required). /// The symbol of token (required). /// The decimals of token (required). - public ERC20Token(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string symbol = default(string), int? decimals = default(int?)) + public MarketPriceERC20Token(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string symbol = default(string), int? decimals = default(int?)) { this.Type = type; // to ensure "contractAddress" is required (not null) if (contractAddress == null) { - throw new ArgumentNullException("contractAddress is a required property for ERC20Token and cannot be null"); + throw new ArgumentNullException("contractAddress is a required property for MarketPriceERC20Token and cannot be null"); } this.ContractAddress = contractAddress; // to ensure "symbol" is required (not null) if (symbol == null) { - throw new ArgumentNullException("symbol is a required property for ERC20Token and cannot be null"); + throw new ArgumentNullException("symbol is a required property for MarketPriceERC20Token and cannot be null"); } this.Symbol = symbol; // to ensure "decimals" is required (not null) if (decimals == null) { - throw new ArgumentNullException("decimals is a required property for ERC20Token and cannot be null"); + throw new ArgumentNullException("decimals is a required property for MarketPriceERC20Token and cannot be null"); } this.Decimals = decimals; } @@ -92,7 +92,7 @@ protected ERC20Token() { } /// Address of ERC20 token /// /// Address of ERC20 token - /// 7973173272142053871140891859049224849605192591 + /// 0x0165878A594ca255338adfa4d48449f69242Eb8F [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] public string ContractAddress { get; set; } @@ -119,7 +119,7 @@ protected ERC20Token() { } public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class ERC20Token {\n"); + sb.Append("class MarketPriceERC20Token {\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); sb.Append(" Symbol: ").Append(Symbol).Append("\n"); diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceFees.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceFees.cs new file mode 100644 index 00000000..dc7d1d23 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceFees.cs @@ -0,0 +1,144 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// MarketPriceFees + /// + [DataContract(Name = "MarketPriceFees")] + public partial class MarketPriceFees + { + /// + /// Fee type + /// + /// Fee type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ROYALTY for value: ROYALTY + /// + [EnumMember(Value = "ROYALTY")] + ROYALTY = 1, + + /// + /// Enum MAKERECOSYSTEM for value: MAKER_ECOSYSTEM + /// + [EnumMember(Value = "MAKER_ECOSYSTEM")] + MAKERECOSYSTEM = 2, + + /// + /// Enum TAKERECOSYSTEM for value: TAKER_ECOSYSTEM + /// + [EnumMember(Value = "TAKER_ECOSYSTEM")] + TAKERECOSYSTEM = 3, + + /// + /// Enum PROTOCOL for value: PROTOCOL + /// + [EnumMember(Value = "PROTOCOL")] + PROTOCOL = 4 + } + + + /// + /// Fee type + /// + /// Fee type + /// ROYALTY + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MarketPriceFees() { } + /// + /// Initializes a new instance of the class. + /// + /// Fee in the payment currency (required). + /// Fee type (required). + /// Wallet address of fee recipient (required). + public MarketPriceFees(string amount = default(string), TypeEnum type = default(TypeEnum), string recipientAddress = default(string)) + { + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for MarketPriceFees and cannot be null"); + } + this.Amount = amount; + this.Type = type; + // to ensure "recipientAddress" is required (not null) + if (recipientAddress == null) + { + throw new ArgumentNullException("recipientAddress is a required property for MarketPriceFees and cannot be null"); + } + this.RecipientAddress = recipientAddress; + } + + /// + /// Fee in the payment currency + /// + /// Fee in the payment currency + /// 1000000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Wallet address of fee recipient + /// + /// Wallet address of fee recipient + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + [DataMember(Name = "recipient_address", IsRequired = true, EmitDefaultValue = true)] + public string RecipientAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MarketPriceFees {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" RecipientAddress: ").Append(RecipientAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NativeToken.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceNativeToken.cs similarity index 78% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NativeToken.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceNativeToken.cs index 7554bf1a..68bd4bce 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NativeToken.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MarketPriceNativeToken.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,15 +21,15 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// NativeToken + /// MarketPriceNativeToken /// - [DataContract(Name = "NativeToken")] - public partial class NativeToken + [DataContract(Name = "MarketPriceNativeToken")] + public partial class MarketPriceNativeToken { /// /// Token type user is offering, which in this case is the native IMX token @@ -54,22 +54,22 @@ public enum TypeEnum [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public TypeEnum Type { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected NativeToken() { } + protected MarketPriceNativeToken() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Token type user is offering, which in this case is the native IMX token (required). /// The symbol of token (required). - public NativeToken(TypeEnum type = default(TypeEnum), string symbol = default(string)) + public MarketPriceNativeToken(TypeEnum type = default(TypeEnum), string symbol = default(string)) { this.Type = type; // to ensure "symbol" is required (not null) if (symbol == null) { - throw new ArgumentNullException("symbol is a required property for NativeToken and cannot be null"); + throw new ArgumentNullException("symbol is a required property for MarketPriceNativeToken and cannot be null"); } this.Symbol = symbol; } @@ -89,7 +89,7 @@ protected NativeToken() { } public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class NativeToken {\n"); + sb.Append("class MarketPriceNativeToken {\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Symbol: ").Append(Symbol).Append("\n"); sb.Append("}\n"); diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Metadata.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Metadata.cs new file mode 100644 index 00000000..2172d6d0 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Metadata.cs @@ -0,0 +1,243 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Metadata + /// + [DataContract(Name = "Metadata")] + public partial class Metadata + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Metadata() { } + /// + /// Initializes a new instance of the class. + /// + /// Metadata id in UUIDv4 format (required). + /// chain (required). + /// The contract address of the metadata (required). + /// When the metadata was created (required). + /// When the metadata was last updated (required). + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external website link of NFT. + /// The animation url of the NFT (required). + /// The youtube URL of NFT (required). + /// List of Metadata attributes (required). + public Metadata(Guid id = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) + { + this.Id = id; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Metadata and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for Metadata and cannot be null"); + } + this.ContractAddress = contractAddress; + this.CreatedAt = createdAt; + // to ensure "updatedAt" is required (not null) + if (updatedAt == null) + { + throw new ArgumentNullException("updatedAt is a required property for Metadata and cannot be null"); + } + this.UpdatedAt = updatedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Metadata and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for Metadata and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for Metadata and cannot be null"); + } + this.Image = image; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for Metadata and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for Metadata and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for Metadata and cannot be null"); + } + this.Attributes = attributes; + this.ExternalUrl = externalUrl; + } + + /// + /// Metadata id in UUIDv4 format + /// + /// Metadata id in UUIDv4 format + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The contract address of the metadata + /// + /// The contract address of the metadata + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// When the metadata was created + /// + /// When the metadata was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// When the metadata was last updated + /// + /// When the metadata was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external website link of NFT + /// + /// The external website link of NFT + /// https://some-url + [DataMember(Name = "external_url", EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube URL of NFT + /// + /// The youtube URL of NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Metadata {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MetadataRefreshRateLimitResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MetadataRefreshRateLimitResult.cs new file mode 100644 index 00000000..0d014280 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MetadataRefreshRateLimitResult.cs @@ -0,0 +1,125 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// MetadataRefreshRateLimitResult + /// + [DataContract(Name = "MetadataRefreshRateLimitResult")] + public partial class MetadataRefreshRateLimitResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MetadataRefreshRateLimitResult() { } + /// + /// Initializes a new instance of the class. + /// + /// imxRefreshesLimit (required). + /// imxRefreshLimitReset (required). + /// imxRemainingRefreshes (required). + /// retryAfter (required). + public MetadataRefreshRateLimitResult(string imxRefreshesLimit = default(string), string imxRefreshLimitReset = default(string), string imxRemainingRefreshes = default(string), string retryAfter = default(string)) + { + // to ensure "imxRefreshesLimit" is required (not null) + if (imxRefreshesLimit == null) + { + throw new ArgumentNullException("imxRefreshesLimit is a required property for MetadataRefreshRateLimitResult and cannot be null"); + } + this.ImxRefreshesLimit = imxRefreshesLimit; + // to ensure "imxRefreshLimitReset" is required (not null) + if (imxRefreshLimitReset == null) + { + throw new ArgumentNullException("imxRefreshLimitReset is a required property for MetadataRefreshRateLimitResult and cannot be null"); + } + this.ImxRefreshLimitReset = imxRefreshLimitReset; + // to ensure "imxRemainingRefreshes" is required (not null) + if (imxRemainingRefreshes == null) + { + throw new ArgumentNullException("imxRemainingRefreshes is a required property for MetadataRefreshRateLimitResult and cannot be null"); + } + this.ImxRemainingRefreshes = imxRemainingRefreshes; + // to ensure "retryAfter" is required (not null) + if (retryAfter == null) + { + throw new ArgumentNullException("retryAfter is a required property for MetadataRefreshRateLimitResult and cannot be null"); + } + this.RetryAfter = retryAfter; + } + + /// + /// Gets or Sets ImxRefreshesLimit + /// + [DataMember(Name = "imx_refreshes_limit", IsRequired = true, EmitDefaultValue = true)] + public string ImxRefreshesLimit { get; set; } + + /// + /// Gets or Sets ImxRefreshLimitReset + /// + [DataMember(Name = "imx_refresh_limit_reset", IsRequired = true, EmitDefaultValue = true)] + public string ImxRefreshLimitReset { get; set; } + + /// + /// Gets or Sets ImxRemainingRefreshes + /// + [DataMember(Name = "imx_remaining_refreshes", IsRequired = true, EmitDefaultValue = true)] + public string ImxRemainingRefreshes { get; set; } + + /// + /// Gets or Sets RetryAfter + /// + [DataMember(Name = "retry_after", IsRequired = true, EmitDefaultValue = true)] + public string RetryAfter { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MetadataRefreshRateLimitResult {\n"); + sb.Append(" ImxRefreshesLimit: ").Append(ImxRefreshesLimit).Append("\n"); + sb.Append(" ImxRefreshLimitReset: ").Append(ImxRefreshLimitReset).Append("\n"); + sb.Append(" ImxRemainingRefreshes: ").Append(ImxRemainingRefreshes).Append("\n"); + sb.Append(" RetryAfter: ").Append(RetryAfter).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Mint.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Mint.cs new file mode 100644 index 00000000..21b2ccf9 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Mint.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The mint activity details + /// + [DataContract(Name = "Mint")] + public partial class Mint + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Mint() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was minted to (required). + /// The minted amount (required). + /// asset (required). + public Mint(string to = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for Mint and cannot be null"); + } + this.To = to; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Mint and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Mint and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was minted to + /// + /// The account address the asset was minted to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public string To { get; set; } + + /// + /// The minted amount + /// + /// The minted amount + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Mint {\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MintAsset.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MintAsset.cs new file mode 100644 index 00000000..a49ceac7 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MintAsset.cs @@ -0,0 +1,132 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// MintAsset + /// + [DataContract(Name = "MintAsset")] + public partial class MintAsset + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MintAsset() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of this asset in the system that originates the mint request (required). + /// The address of the receiver (required). + /// An optional `uint256` token id as string. Required for ERC1155 collections.. + /// Optional mount of tokens to mint. Required for ERC1155 collections. ERC712 collections can omit this field or set it to 1. + /// metadata. + public MintAsset(string referenceId = default(string), string ownerAddress = default(string), string tokenId = default(string), string amount = default(string), NFTMetadataRequest metadata = default(NFTMetadataRequest)) + { + // to ensure "referenceId" is required (not null) + if (referenceId == null) + { + throw new ArgumentNullException("referenceId is a required property for MintAsset and cannot be null"); + } + this.ReferenceId = referenceId; + // to ensure "ownerAddress" is required (not null) + if (ownerAddress == null) + { + throw new ArgumentNullException("ownerAddress is a required property for MintAsset and cannot be null"); + } + this.OwnerAddress = ownerAddress; + this.TokenId = tokenId; + this.Amount = amount; + this.Metadata = metadata; + } + + /// + /// The id of this asset in the system that originates the mint request + /// + /// The id of this asset in the system that originates the mint request + /// 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + [DataMember(Name = "reference_id", IsRequired = true, EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// The address of the receiver + /// + /// The address of the receiver + /// 0xc344c05eef8876e517072f879dae8905aa2b956b + [DataMember(Name = "owner_address", IsRequired = true, EmitDefaultValue = true)] + public string OwnerAddress { get; set; } + + /// + /// An optional `uint256` token id as string. Required for ERC1155 collections. + /// + /// An optional `uint256` token id as string. Required for ERC1155 collections. + /// 1 + [DataMember(Name = "token_id", EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Optional mount of tokens to mint. Required for ERC1155 collections. ERC712 collections can omit this field or set it to 1 + /// + /// Optional mount of tokens to mint. Required for ERC1155 collections. ERC712 collections can omit this field or set it to 1 + /// 1 + [DataMember(Name = "amount", EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Metadata + /// + [DataMember(Name = "metadata", EmitDefaultValue = false)] + public NFTMetadataRequest Metadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MintAsset {\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" OwnerAddress: ").Append(OwnerAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MintRequestErrorMessage.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MintRequestErrorMessage.cs new file mode 100644 index 00000000..25f39ac0 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MintRequestErrorMessage.cs @@ -0,0 +1,74 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The error details in case the mint request fails + /// + [DataContract(Name = "MintRequestErrorMessage")] + public partial class MintRequestErrorMessage + { + /// + /// Initializes a new instance of the class. + /// + /// An error message in case the mint request fails. + public MintRequestErrorMessage(string message = default(string)) + { + this.Message = message; + } + + /// + /// An error message in case the mint request fails + /// + /// An error message in case the mint request fails + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MintRequestErrorMessage {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MintRequestStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MintRequestStatus.cs new file mode 100644 index 00000000..85eca0cf --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/MintRequestStatus.cs @@ -0,0 +1,54 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The status of the mint request + /// + /// The status of the mint request + [JsonConverter(typeof(StringEnumConverter))] + public enum MintRequestStatus + { + /// + /// Enum Pending for value: pending + /// + [EnumMember(Value = "pending")] + Pending = 1, + + /// + /// Enum Succeeded for value: succeeded + /// + [EnumMember(Value = "succeeded")] + Succeeded = 2, + + /// + /// Enum Failed for value: failed + /// + [EnumMember(Value = "failed")] + Failed = 3 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFT.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFT.cs new file mode 100644 index 00000000..eade424a --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFT.cs @@ -0,0 +1,312 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// NFT + /// + [DataContract(Name = "NFT")] + public partial class NFT + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public NFTContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFT() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// An `uint256` token id as string (required). + /// The contract address of the NFT (required). + /// contractType (required). + /// When the NFT was first indexed (required). + /// When the NFT owner was last updated (required). + /// When NFT metadata was last synced (required). + /// The id of the metadata of this NFT. + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// (deprecated - use external_url instead) The external website link of NFT (required). + /// The external website link of NFT (required). + /// The animation url of the NFT (required). + /// The youtube URL of NFT (required). + /// List of NFT Metadata attributes (required). + /// The total supply of NFT. + public NFT(Chain chain = default(Chain), string tokenId = default(string), string contractAddress = default(string), NFTContractType contractType = default(NFTContractType), DateTime indexedAt = default(DateTime), DateTime updatedAt = default(DateTime), DateTime? metadataSyncedAt = default(DateTime?), Guid? metadataId = default(Guid?), string name = default(string), string description = default(string), string image = default(string), string externalLink = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), string totalSupply = default(string)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFT and cannot be null"); + } + this.Chain = chain; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFT and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFT and cannot be null"); + } + this.ContractAddress = contractAddress; + this.ContractType = contractType; + this.IndexedAt = indexedAt; + this.UpdatedAt = updatedAt; + // to ensure "metadataSyncedAt" is required (not null) + if (metadataSyncedAt == null) + { + throw new ArgumentNullException("metadataSyncedAt is a required property for NFT and cannot be null"); + } + this.MetadataSyncedAt = metadataSyncedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for NFT and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for NFT and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for NFT and cannot be null"); + } + this.Image = image; + // to ensure "externalLink" is required (not null) + if (externalLink == null) + { + throw new ArgumentNullException("externalLink is a required property for NFT and cannot be null"); + } + this.ExternalLink = externalLink; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for NFT and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for NFT and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for NFT and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for NFT and cannot be null"); + } + this.Attributes = attributes; + this.MetadataId = metadataId; + this.TotalSupply = totalSupply; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// The contract address of the NFT + /// + /// The contract address of the NFT + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// When the NFT was first indexed + /// + /// When the NFT was first indexed + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// When the NFT owner was last updated + /// + /// When the NFT owner was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// When NFT metadata was last synced + /// + /// When NFT metadata was last synced + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "metadata_synced_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime? MetadataSyncedAt { get; set; } + + /// + /// The id of the metadata of this NFT + /// + /// The id of the metadata of this NFT + /// ae83bc80-4dd5-11ee-be56-0242ac120002 + [DataMember(Name = "metadata_id", EmitDefaultValue = true)] + public Guid? MetadataId { get; set; } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// (deprecated - use external_url instead) The external website link of NFT + /// + /// (deprecated - use external_url instead) The external website link of NFT + /// https://some-url + [DataMember(Name = "external_link", IsRequired = true, EmitDefaultValue = true)] + [Obsolete] + public string ExternalLink { get; set; } + + /// + /// The external website link of NFT + /// + /// The external website link of NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube URL of NFT + /// + /// The youtube URL of NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of NFT Metadata attributes + /// + /// List of NFT Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// The total supply of NFT + /// + /// The total supply of NFT + /// 100 + [DataMember(Name = "total_supply", EmitDefaultValue = true)] + public string TotalSupply { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFT {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" MetadataSyncedAt: ").Append(MetadataSyncedAt).Append("\n"); + sb.Append(" MetadataId: ").Append(MetadataId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalLink: ").Append(ExternalLink).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" TotalSupply: ").Append(TotalSupply).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTBundle.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTBundle.cs new file mode 100644 index 00000000..ab4ac54d --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTBundle.cs @@ -0,0 +1,112 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// NFT bundle includes NFT with stack, markets and listings + /// + [DataContract(Name = "NFTBundle")] + public partial class NFTBundle + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTBundle() { } + /// + /// Initializes a new instance of the class. + /// + /// nftWithStack (required). + /// market (required). + /// List of open listings for the stack. (required). + public NFTBundle(NFTWithStack nftWithStack = default(NFTWithStack), Market market = default(Market), List listings = default(List)) + { + // to ensure "nftWithStack" is required (not null) + if (nftWithStack == null) + { + throw new ArgumentNullException("nftWithStack is a required property for NFTBundle and cannot be null"); + } + this.NftWithStack = nftWithStack; + // to ensure "market" is required (not null) + if (market == null) + { + throw new ArgumentNullException("market is a required property for NFTBundle and cannot be null"); + } + this.Market = market; + // to ensure "listings" is required (not null) + if (listings == null) + { + throw new ArgumentNullException("listings is a required property for NFTBundle and cannot be null"); + } + this.Listings = listings; + } + + /// + /// Gets or Sets NftWithStack + /// + [DataMember(Name = "nft_with_stack", IsRequired = true, EmitDefaultValue = true)] + public NFTWithStack NftWithStack { get; set; } + + /// + /// Gets or Sets Market + /// + [DataMember(Name = "market", IsRequired = true, EmitDefaultValue = true)] + public Market Market { get; set; } + + /// + /// List of open listings for the stack. + /// + /// List of open listings for the stack. + [DataMember(Name = "listings", IsRequired = true, EmitDefaultValue = true)] + public List Listings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTBundle {\n"); + sb.Append(" NftWithStack: ").Append(NftWithStack).Append("\n"); + sb.Append(" Market: ").Append(Market).Append("\n"); + sb.Append(" Listings: ").Append(Listings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTContractType.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTContractType.cs new file mode 100644 index 00000000..9af59c3e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTContractType.cs @@ -0,0 +1,48 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The contract type for an NFT + /// + /// The contract type for an NFT + [JsonConverter(typeof(StringEnumConverter))] + public enum NFTContractType + { + /// + /// Enum ERC721 for value: ERC721 + /// + [EnumMember(Value = "ERC721")] + ERC721 = 1, + + /// + /// Enum ERC1155 for value: ERC1155 + /// + [EnumMember(Value = "ERC1155")] + ERC1155 = 2 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttribute.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTMetadataAttribute.cs similarity index 56% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttribute.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTMetadataAttribute.cs index e9024ed0..ef3da079 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttribute.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTMetadataAttribute.cs @@ -1,98 +1,106 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// NFTMetadataAttribute + /// NFTMetadataAttribute /// [DataContract(Name = "NFTMetadataAttribute")] - public class NFTMetadataAttribute + public partial class NFTMetadataAttribute { /// - /// Display type for this attribute + /// Display type for this attribute /// /// Display type for this attribute [JsonConverter(typeof(StringEnumConverter))] public enum DisplayTypeEnum { /// - /// Enum Number for value: number + /// Enum Number for value: number /// - [EnumMember(Value = "number")] Number = 1, + [EnumMember(Value = "number")] + Number = 1, /// - /// Enum BoostPercentage for value: boost_percentage + /// Enum BoostPercentage for value: boost_percentage /// [EnumMember(Value = "boost_percentage")] BoostPercentage = 2, /// - /// Enum BoostNumber for value: boost_number + /// Enum BoostNumber for value: boost_number /// - [EnumMember(Value = "boost_number")] BoostNumber = 3, + [EnumMember(Value = "boost_number")] + BoostNumber = 3, /// - /// Enum Date for value: date + /// Enum Date for value: date /// - [EnumMember(Value = "date")] Date = 4 + [EnumMember(Value = "date")] + Date = 4 } + + /// + /// Display type for this attribute + /// + /// Display type for this attribute + /// number + [DataMember(Name = "display_type", EmitDefaultValue = true)] + public DisplayTypeEnum? DisplayType { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected NFTMetadataAttribute() - { - } - + protected NFTMetadataAttribute() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Display type for this attribute. /// The metadata trait type (required). /// value (required). - public NFTMetadataAttribute(DisplayTypeEnum? displayType = default, string traitType = default, - NFTMetadataAttributeValue value = default) + public NFTMetadataAttribute(DisplayTypeEnum? displayType = default(DisplayTypeEnum?), string traitType = default(string), NFTMetadataAttributeValue value = default(NFTMetadataAttributeValue)) { // to ensure "traitType" is required (not null) if (traitType == null) - throw new ArgumentNullException( - "traitType is a required property for NFTMetadataAttribute and cannot be null"); - TraitType = traitType; + { + throw new ArgumentNullException("traitType is a required property for NFTMetadataAttribute and cannot be null"); + } + this.TraitType = traitType; // to ensure "value" is required (not null) if (value == null) - throw new ArgumentNullException( - "value is a required property for NFTMetadataAttribute and cannot be null"); - Value = value; - DisplayType = displayType; + { + throw new ArgumentNullException("value is a required property for NFTMetadataAttribute and cannot be null"); + } + this.Value = value; + this.DisplayType = displayType; } - - /// - /// Display type for this attribute - /// - /// Display type for this attribute - /// number - [DataMember(Name = "display_type", EmitDefaultValue = true)] - public DisplayTypeEnum? DisplayType { get; set; } - /// - /// The metadata trait type + /// The metadata trait type /// /// The metadata trait type /// Aqua Power @@ -100,18 +108,18 @@ public NFTMetadataAttribute(DisplayTypeEnum? displayType = default, string trait public string TraitType { get; set; } /// - /// Gets or Sets Value + /// Gets or Sets Value /// [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] public NFTMetadataAttributeValue Value { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class NFTMetadataAttribute {\n"); sb.Append(" DisplayType: ").Append(DisplayType).Append("\n"); sb.Append(" TraitType: ").Append(TraitType).Append("\n"); @@ -121,12 +129,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTMetadataAttributeValue.cs similarity index 53% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTMetadataAttributeValue.cs index e9baa65b..625b189c 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTMetadataAttributeValue.cs @@ -1,144 +1,161 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; using System.Collections.Generic; -using System.Diagnostics; +using System.Collections.ObjectModel; +using System.Linq; using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; +using System.Reflection; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// The metadata trait value + /// The metadata trait value /// [JsonConverter(typeof(NFTMetadataAttributeValueJsonConverter))] [DataContract(Name = "NFTMetadataAttribute_value")] - public class NFTMetadataAttributeValue : AbstractOpenAPISchema + public partial class NFTMetadataAttributeValue : AbstractOpenAPISchema { - private object _actualInstance; - /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// /// An instance of string. public NFTMetadataAttributeValue(string actualInstance) { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// /// An instance of decimal. public NFTMetadataAttributeValue(decimal actualInstance) { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance; + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance; } /// - /// Initializes a new instance of the class - /// with the class + /// Initializes a new instance of the class + /// with the class /// /// An instance of bool. public NFTMetadataAttributeValue(bool actualInstance) { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance; + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance; } + + private Object _actualInstance; + /// - /// Gets or Sets ActualInstance + /// Gets or Sets ActualInstance /// - public override object ActualInstance + public override Object ActualInstance { - get => _actualInstance; + get + { + return _actualInstance; + } set { if (value.GetType() == typeof(bool) || value is bool) - _actualInstance = value; + { + this._actualInstance = value; + } else if (value.GetType() == typeof(decimal) || value is decimal) - _actualInstance = value; + { + this._actualInstance = value; + } else if (value.GetType() == typeof(string) || value is string) - _actualInstance = value; + { + this._actualInstance = value; + } else - throw new ArgumentException( - "Invalid instance found. Must be the following types: bool, decimal, string"); + { + throw new ArgumentException("Invalid instance found. Must be the following types: bool, decimal, string"); + } } } /// - /// Get the actual instance of `string`. If the actual instance is not `string`, - /// the InvalidClassException will be thrown + /// Get the actual instance of `string`. If the actual instance is not `string`, + /// the InvalidClassException will be thrown /// /// An instance of string public string GetString() { - return (string)ActualInstance; + return (string)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, - /// the InvalidClassException will be thrown + /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// the InvalidClassException will be thrown /// /// An instance of decimal public decimal GetDecimal() { - return (decimal)ActualInstance; + return (decimal)this.ActualInstance; } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, - /// the InvalidClassException will be thrown + /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// the InvalidClassException will be thrown /// /// An instance of bool public bool GetBool() { - return (bool)ActualInstance; + return (bool)this.ActualInstance; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class NFTMetadataAttributeValue {\n"); - sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public override string ToJson() { - return JsonConvert.SerializeObject(ActualInstance, SerializerSettings); + return JsonConvert.SerializeObject(this.ActualInstance, NFTMetadataAttributeValue.SerializerSettings); } /// - /// Converts the JSON string into an instance of NFTMetadataAttributeValue + /// Converts the JSON string into an instance of NFTMetadataAttributeValue /// /// JSON string /// An instance of NFTMetadataAttributeValue @@ -146,114 +163,121 @@ public static NFTMetadataAttributeValue FromJson(string jsonString) { NFTMetadataAttributeValue newNFTMetadataAttributeValue = null; - if (string.IsNullOrEmpty(jsonString)) return newNFTMetadataAttributeValue; - var match = 0; - var matchedTypes = new List(); + if (string.IsNullOrEmpty(jsonString)) + { + return newNFTMetadataAttributeValue; + } + int match = 0; + List matchedTypes = new List(); try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(bool).GetProperty("AdditionalProperties") == null) - newNFTMetadataAttributeValue = - new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.SerializerSettings)); + } else - newNFTMetadataAttributeValue = new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, AdditionalPropertiesSerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.AdditionalPropertiesSerializerSettings)); + } matchedTypes.Add("bool"); match++; } catch (Exception exception) { // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into bool: {1}", jsonString, exception); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(decimal).GetProperty("AdditionalProperties") == null) - newNFTMetadataAttributeValue = - new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.SerializerSettings)); + } else - newNFTMetadataAttributeValue = new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, AdditionalPropertiesSerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.AdditionalPropertiesSerializerSettings)); + } matchedTypes.Add("decimal"); match++; } catch (Exception exception) { // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(string).GetProperty("AdditionalProperties") == null) - newNFTMetadataAttributeValue = - new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.SerializerSettings)); + } else - newNFTMetadataAttributeValue = new NFTMetadataAttributeValue( - JsonConvert.DeserializeObject(jsonString, AdditionalPropertiesSerializerSettings)); + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.AdditionalPropertiesSerializerSettings)); + } matchedTypes.Add("string"); match++; } catch (Exception exception) { // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into string: {1}", jsonString, exception); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into string: {1}", jsonString, exception.ToString())); } if (match == 0) - throw new InvalidDataException("The JSON string `" + jsonString + - "` cannot be deserialized into any schema defined."); - if (match > 1) - throw new InvalidDataException("The JSON string `" + jsonString + - "` incorrectly matches more than one schema (should be exactly one match): " + - string.Join(",", matchedTypes)); + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } // deserialization is considered successful at this point if no exception has been thrown. return newNFTMetadataAttributeValue; } + } /// - /// Custom JSON converter for NFTMetadataAttributeValue + /// Custom JSON converter for NFTMetadataAttributeValue /// public class NFTMetadataAttributeValueJsonConverter : JsonConverter { /// - /// To write the JSON string + /// To write the JSON string /// /// JSON writer /// Object to be converted into a JSON string /// JSON Serializer public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { - writer.WriteRawValue((string)typeof(NFTMetadataAttributeValue).GetMethod("ToJson").Invoke(value, null)); + writer.WriteRawValue((string)(typeof(NFTMetadataAttributeValue).GetMethod("ToJson").Invoke(value, null))); } /// - /// To convert a JSON string into an object + /// To convert a JSON string into an object /// /// JSON reader /// Object type /// Existing value /// JSON Serializer /// The object converted from the JSON string - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - switch (reader.TokenType) + switch(reader.TokenType) { - case JsonToken.String: + case JsonToken.String: return new NFTMetadataAttributeValue(Convert.ToString(reader.Value)); - case JsonToken.Float: + case JsonToken.Float: return new NFTMetadataAttributeValue(Convert.ToDecimal(reader.Value)); - case JsonToken.Boolean: + case JsonToken.Boolean: return new NFTMetadataAttributeValue(Convert.ToBoolean(reader.Value)); case JsonToken.StartObject: return NFTMetadataAttributeValue.FromJson(JObject.Load(reader).ToString(Formatting.None)); @@ -265,7 +289,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist } /// - /// Check if the object can be converted + /// Check if the object can be converted /// /// Object type /// True if the object can be converted @@ -274,4 +298,5 @@ public override bool CanConvert(Type objectType) return false; } } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTMetadataRequest.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTMetadataRequest.cs new file mode 100644 index 00000000..8c7655ab --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTMetadataRequest.cs @@ -0,0 +1,140 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The NFT metadata. Total size of this object should not exceed 16 KiB + /// + [DataContract(Name = "NFTMetadataRequest")] + public partial class NFTMetadataRequest + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the NFT. + /// The description of the NFT. + /// The image url of the NFT. + /// The external link of the NFT. + /// The animation url of the NFT. + /// The youtube link of the NFT. + /// List of Metadata attributes. + public NFTMetadataRequest(string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) + { + this.Name = name; + this.Description = description; + this.Image = image; + this.ExternalUrl = externalUrl; + this.AnimationUrl = animationUrl; + this.YoutubeUrl = youtubeUrl; + this.Attributes = attributes; + } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external link of the NFT + /// + /// The external link of the NFT + /// https://some-url + [DataMember(Name = "external_url", EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube link of the NFT + /// + /// The youtube link of the NFT + /// https://some-url + [DataMember(Name = "youtube_url", EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTMetadataRequest {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTOwner.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTOwner.cs new file mode 100644 index 00000000..1ff0c065 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTOwner.cs @@ -0,0 +1,158 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// NFTOwner + /// + [DataContract(Name = "NFTOwner")] + public partial class NFTOwner + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTOwner() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of NFT contract (required). + /// An `uint256` token id as string (required). + /// The account address of the owner of the NFT (required). + /// The amount of owned tokens (uint256 as string) (required). + /// When the NFT owner was last updated. + public NFTOwner(Chain chain = default(Chain), string contractAddress = default(string), string tokenId = default(string), string accountAddress = default(string), string balance = default(string), DateTime updatedAt = default(DateTime)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFTOwner and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFTOwner and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFTOwner and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for NFTOwner and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "balance" is required (not null) + if (balance == null) + { + throw new ArgumentNullException("balance is a required property for NFTOwner and cannot be null"); + } + this.Balance = balance; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of NFT contract + /// + /// The address of NFT contract + /// 0x5a019874f4fae314b0eaa4606be746366e661306 + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// The account address of the owner of the NFT + /// + /// The account address of the owner of the NFT + /// 0x5a019874f4fae314b0eaa4606be746366e661306 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// The amount of owned tokens (uint256 as string) + /// + /// The amount of owned tokens (uint256 as string) + /// 1 + [DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)] + public string Balance { get; set; } + + /// + /// When the NFT owner was last updated + /// + /// When the NFT owner was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", EmitDefaultValue = false)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTOwner {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" Balance: ").Append(Balance).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTQuoteResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTQuoteResult.cs similarity index 56% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTQuoteResult.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTQuoteResult.cs index 322ef83a..0087532e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTQuoteResult.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTQuoteResult.cs @@ -1,108 +1,121 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// NFT quote result + /// NFT quote result /// [DataContract(Name = "NFTQuoteResult")] - public class NFTQuoteResult + public partial class NFTQuoteResult { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected NFTQuoteResult() - { - } - + protected NFTQuoteResult() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// chain (required). - /// tokenId (required). + /// Token id of NFT (uint256 as string) (required). /// marketStack (required). /// marketNft (required). /// marketCollection (required). - public NFTQuoteResult(Chain chain = default, string tokenId = default, Market marketStack = default, - Market marketNft = default, Market marketCollection = default) + public NFTQuoteResult(Chain chain = default(Chain), string tokenId = default(string), Market marketStack = default(Market), MarketNft marketNft = default(MarketNft), Market marketCollection = default(Market)) { // to ensure "chain" is required (not null) if (chain == null) + { throw new ArgumentNullException("chain is a required property for NFTQuoteResult and cannot be null"); - Chain = chain; + } + this.Chain = chain; // to ensure "tokenId" is required (not null) if (tokenId == null) + { throw new ArgumentNullException("tokenId is a required property for NFTQuoteResult and cannot be null"); - TokenId = tokenId; + } + this.TokenId = tokenId; // to ensure "marketStack" is required (not null) if (marketStack == null) - throw new ArgumentNullException( - "marketStack is a required property for NFTQuoteResult and cannot be null"); - MarketStack = marketStack; + { + throw new ArgumentNullException("marketStack is a required property for NFTQuoteResult and cannot be null"); + } + this.MarketStack = marketStack; // to ensure "marketNft" is required (not null) if (marketNft == null) - throw new ArgumentNullException( - "marketNft is a required property for NFTQuoteResult and cannot be null"); - MarketNft = marketNft; + { + throw new ArgumentNullException("marketNft is a required property for NFTQuoteResult and cannot be null"); + } + this.MarketNft = marketNft; // to ensure "marketCollection" is required (not null) if (marketCollection == null) - throw new ArgumentNullException( - "marketCollection is a required property for NFTQuoteResult and cannot be null"); - MarketCollection = marketCollection; + { + throw new ArgumentNullException("marketCollection is a required property for NFTQuoteResult and cannot be null"); + } + this.MarketCollection = marketCollection; } /// - /// Gets or Sets Chain + /// Gets or Sets Chain /// [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] public Chain Chain { get; set; } /// - /// Gets or Sets TokenId + /// Token id of NFT (uint256 as string) /// + /// Token id of NFT (uint256 as string) [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] public string TokenId { get; set; } /// - /// Gets or Sets MarketStack + /// Gets or Sets MarketStack /// [DataMember(Name = "market_stack", IsRequired = true, EmitDefaultValue = true)] public Market MarketStack { get; set; } /// - /// Gets or Sets MarketNft + /// Gets or Sets MarketNft /// [DataMember(Name = "market_nft", IsRequired = true, EmitDefaultValue = true)] - public Market MarketNft { get; set; } + public MarketNft MarketNft { get; set; } /// - /// Gets or Sets MarketCollection + /// Gets or Sets MarketCollection /// [DataMember(Name = "market_collection", IsRequired = true, EmitDefaultValue = true)] public Market MarketCollection { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class NFTQuoteResult {\n"); sb.Append(" Chain: ").Append(Chain).Append("\n"); sb.Append(" TokenId: ").Append(TokenId).Append("\n"); @@ -114,12 +127,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTSale.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTSale.cs new file mode 100644 index 00000000..28b32b3a --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTSale.cs @@ -0,0 +1,145 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The NFT Sale activity details + /// + [DataContract(Name = "NFTSale")] + public partial class NFTSale + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTSale() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of order (required). + /// The account address of buyer (required). + /// The account address of seller (required). + /// asset (required). + /// payment (required). + public NFTSale(string orderId = default(string), string to = default(string), string from = default(string), List asset = default(List), SalePayment payment = default(SalePayment)) + { + // to ensure "orderId" is required (not null) + if (orderId == null) + { + throw new ArgumentNullException("orderId is a required property for NFTSale and cannot be null"); + } + this.OrderId = orderId; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for NFTSale and cannot be null"); + } + this.To = to; + // to ensure "from" is required (not null) + if (from == null) + { + throw new ArgumentNullException("from is a required property for NFTSale and cannot be null"); + } + this.From = from; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for NFTSale and cannot be null"); + } + this.Asset = asset; + // to ensure "payment" is required (not null) + if (payment == null) + { + throw new ArgumentNullException("payment is a required property for NFTSale and cannot be null"); + } + this.Payment = payment; + } + + /// + /// The id of order + /// + /// The id of order + /// ARZ3NDEKTSV4RRFFQ69G5FAV + [DataMember(Name = "order_id", IsRequired = true, EmitDefaultValue = true)] + public string OrderId { get; set; } + + /// + /// The account address of buyer + /// + /// The account address of buyer + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public string To { get; set; } + + /// + /// The account address of seller + /// + /// The account address of seller + /// 0xbD6cFcf93474De653d7B42b346c7c25d1F9c559C + [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public List Asset { get; set; } + + /// + /// Gets or Sets Payment + /// + [DataMember(Name = "payment", IsRequired = true, EmitDefaultValue = true)] + public SalePayment Payment { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTSale {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append(" Payment: ").Append(Payment).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTWithBalance.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTWithBalance.cs new file mode 100644 index 00000000..8dea823b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTWithBalance.cs @@ -0,0 +1,300 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// NFTWithBalance + /// + [DataContract(Name = "NFTWithBalance")] + public partial class NFTWithBalance + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public NFTContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTWithBalance() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// An `uint256` token id as string (required). + /// The contract address of the NFT (required). + /// contractType (required). + /// When the NFT was first indexed (required). + /// When the NFT owner was last updated (required). + /// When NFT metadata was last synced (required). + /// The id of the metadata of this NFT. + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external website link of NFT (required). + /// The animation url of the NFT (required). + /// The youtube URL of NFT (required). + /// List of Metadata attributes (required). + /// The amount of this NFT this account owns (required). + public NFTWithBalance(Chain chain = default(Chain), string tokenId = default(string), string contractAddress = default(string), NFTContractType contractType = default(NFTContractType), DateTime indexedAt = default(DateTime), DateTime updatedAt = default(DateTime), DateTime? metadataSyncedAt = default(DateTime?), Guid? metadataId = default(Guid?), string name = default(string), string description = default(string), string image = default(string), string externalLink = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), string balance = default(string)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFTWithBalance and cannot be null"); + } + this.Chain = chain; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFTWithBalance and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFTWithBalance and cannot be null"); + } + this.ContractAddress = contractAddress; + this.ContractType = contractType; + this.IndexedAt = indexedAt; + this.UpdatedAt = updatedAt; + // to ensure "metadataSyncedAt" is required (not null) + if (metadataSyncedAt == null) + { + throw new ArgumentNullException("metadataSyncedAt is a required property for NFTWithBalance and cannot be null"); + } + this.MetadataSyncedAt = metadataSyncedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for NFTWithBalance and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for NFTWithBalance and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for NFTWithBalance and cannot be null"); + } + this.Image = image; + // to ensure "externalLink" is required (not null) + if (externalLink == null) + { + throw new ArgumentNullException("externalLink is a required property for NFTWithBalance and cannot be null"); + } + this.ExternalLink = externalLink; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for NFTWithBalance and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for NFTWithBalance and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for NFTWithBalance and cannot be null"); + } + this.Attributes = attributes; + // to ensure "balance" is required (not null) + if (balance == null) + { + throw new ArgumentNullException("balance is a required property for NFTWithBalance and cannot be null"); + } + this.Balance = balance; + this.MetadataId = metadataId; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// The contract address of the NFT + /// + /// The contract address of the NFT + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// When the NFT was first indexed + /// + /// When the NFT was first indexed + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// When the NFT owner was last updated + /// + /// When the NFT owner was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// When NFT metadata was last synced + /// + /// When NFT metadata was last synced + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "metadata_synced_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime? MetadataSyncedAt { get; set; } + + /// + /// The id of the metadata of this NFT + /// + /// The id of the metadata of this NFT + /// ae83bc80-4dd5-11ee-be56-0242ac120002 + [DataMember(Name = "metadata_id", EmitDefaultValue = true)] + public Guid? MetadataId { get; set; } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// This is a super awesome sword + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external website link of NFT + /// + /// The external website link of NFT + /// https://some-url + [DataMember(Name = "external_link", IsRequired = true, EmitDefaultValue = true)] + public string ExternalLink { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube URL of NFT + /// + /// The youtube URL of NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// The amount of this NFT this account owns + /// + /// The amount of this NFT this account owns + /// 11 + [DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)] + public string Balance { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTWithBalance {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" MetadataSyncedAt: ").Append(MetadataSyncedAt).Append("\n"); + sb.Append(" MetadataId: ").Append(MetadataId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalLink: ").Append(ExternalLink).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" Balance: ").Append(Balance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTWithOwner.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTWithOwner.cs new file mode 100644 index 00000000..2dd12c74 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTWithOwner.cs @@ -0,0 +1,158 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// NFTWithOwner + /// + [DataContract(Name = "NFTWithOwner")] + public partial class NFTWithOwner + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTWithOwner() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of NFT contract (required). + /// An `uint256` token id as string (required). + /// The account address of the owner of the NFT (required). + /// The amount of owned tokens (uint256 as string) (required). + /// When the owner last changed for the given NFT (required). + public NFTWithOwner(Chain chain = default(Chain), string contractAddress = default(string), string tokenId = default(string), string accountAddress = default(string), string balance = default(string), DateTime updatedAt = default(DateTime)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFTWithOwner and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFTWithOwner and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFTWithOwner and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for NFTWithOwner and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "balance" is required (not null) + if (balance == null) + { + throw new ArgumentNullException("balance is a required property for NFTWithOwner and cannot be null"); + } + this.Balance = balance; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of NFT contract + /// + /// The address of NFT contract + /// 0x5a019874f4fae314b0eaa4606be746366e661306 + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// The account address of the owner of the NFT + /// + /// The account address of the owner of the NFT + /// 0x5a019874f4fae314b0eaa4606be746366e661306 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// The amount of owned tokens (uint256 as string) + /// + /// The amount of owned tokens (uint256 as string) + /// 1 + [DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)] + public string Balance { get; set; } + + /// + /// When the owner last changed for the given NFT + /// + /// When the owner last changed for the given NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTWithOwner {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" Balance: ").Append(Balance).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTWithStack.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTWithStack.cs new file mode 100644 index 00000000..e901a63d --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NFTWithStack.cs @@ -0,0 +1,286 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Stack + /// + [DataContract(Name = "NFTWithStack")] + public partial class NFTWithStack + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTWithStack() { } + /// + /// Initializes a new instance of the class. + /// + /// Token id of NFT (uint256 as string) (required). + /// Stack ID (required). + /// chain (required). + /// Contract address (required). + /// The contract type (required). + /// When the metadata was created (required). + /// When the metadata was last updated (required). + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external website link of NFT (required). + /// The animation url of the NFT (required). + /// The youtube URL of NFT (required). + /// List of Metadata attributes (required). + /// Balance of NFT (required). + public NFTWithStack(string tokenId = default(string), Guid stackId = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), string contractType = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), int? balance = default(int?)) + { + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFTWithStack and cannot be null"); + } + this.TokenId = tokenId; + this.StackId = stackId; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFTWithStack and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFTWithStack and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "contractType" is required (not null) + if (contractType == null) + { + throw new ArgumentNullException("contractType is a required property for NFTWithStack and cannot be null"); + } + this.ContractType = contractType; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for NFTWithStack and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for NFTWithStack and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for NFTWithStack and cannot be null"); + } + this.Image = image; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for NFTWithStack and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for NFTWithStack and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for NFTWithStack and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for NFTWithStack and cannot be null"); + } + this.Attributes = attributes; + // to ensure "balance" is required (not null) + if (balance == null) + { + throw new ArgumentNullException("balance is a required property for NFTWithStack and cannot be null"); + } + this.Balance = balance; + } + + /// + /// Token id of NFT (uint256 as string) + /// + /// Token id of NFT (uint256 as string) + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Stack ID + /// + /// Stack ID + [DataMember(Name = "stack_id", IsRequired = true, EmitDefaultValue = true)] + public Guid StackId { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Contract address + /// + /// Contract address + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The contract type + /// + /// The contract type + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public string ContractType { get; set; } + + /// + /// When the metadata was created + /// + /// When the metadata was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// When the metadata was last updated + /// + /// When the metadata was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external website link of NFT + /// + /// The external website link of NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube URL of NFT + /// + /// The youtube URL of NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Balance of NFT + /// + /// Balance of NFT + [DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)] + public int? Balance { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTWithStack {\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" StackId: ").Append(StackId).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" Balance: ").Append(Balance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NativeItem.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NativeItem.cs new file mode 100644 index 00000000..0b187bc2 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/NativeItem.cs @@ -0,0 +1,110 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// NativeItem + /// + [DataContract(Name = "NativeItem")] + public partial class NativeItem + { + /// + /// Token type user is offering, which in this case is the native IMX token + /// + /// Token type user is offering, which in this case is the native IMX token + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum NATIVE for value: NATIVE + /// + [EnumMember(Value = "NATIVE")] + NATIVE = 1 + } + + + /// + /// Token type user is offering, which in this case is the native IMX token + /// + /// Token type user is offering, which in this case is the native IMX token + /// NATIVE + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NativeItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is the native IMX token (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public NativeItem(TypeEnum type = default(TypeEnum), string amount = default(string)) + { + this.Type = type; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for NativeItem and cannot be null"); + } + this.Amount = amount; + } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NativeItem {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistContractStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistContractStatus.cs new file mode 100644 index 00000000..68eb239c --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistContractStatus.cs @@ -0,0 +1,149 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// OperatorAllowlistContractStatus + /// + [DataContract(Name = "OperatorAllowlistContractStatus")] + public partial class OperatorAllowlistContractStatus + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public OperatorAllowlistStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected OperatorAllowlistContractStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of the contract (required). + /// status (required). + /// details (required). + /// When the contract status was created (required). + /// Who created the status (required). + public OperatorAllowlistContractStatus(Chain chain = default(Chain), string contractAddress = default(string), OperatorAllowlistStatus status = default(OperatorAllowlistStatus), OperatorAllowlistStatusDetails details = default(OperatorAllowlistStatusDetails), DateTime createdAt = default(DateTime), string createdBy = default(string)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for OperatorAllowlistContractStatus and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for OperatorAllowlistContractStatus and cannot be null"); + } + this.ContractAddress = contractAddress; + this.Status = status; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for OperatorAllowlistContractStatus and cannot be null"); + } + this.Details = details; + this.CreatedAt = createdAt; + // to ensure "createdBy" is required (not null) + if (createdBy == null) + { + throw new ArgumentNullException("createdBy is a required property for OperatorAllowlistContractStatus and cannot be null"); + } + this.CreatedBy = createdBy; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of the contract + /// + /// The address of the contract + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// Gets or Sets Details + /// + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public OperatorAllowlistStatusDetails Details { get; set; } + + /// + /// When the contract status was created + /// + /// When the contract status was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Who created the status + /// + /// Who created the status + /// user@immutable.com + [DataMember(Name = "created_by", IsRequired = true, EmitDefaultValue = true)] + public string CreatedBy { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class OperatorAllowlistContractStatus {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistContractStatusInternal.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistContractStatusInternal.cs new file mode 100644 index 00000000..54bba841 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistContractStatusInternal.cs @@ -0,0 +1,174 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// OperatorAllowlistContractStatusInternal + /// + [DataContract(Name = "OperatorAllowlistContractStatusInternal")] + public partial class OperatorAllowlistContractStatusInternal + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public OperatorAllowlistStatus Status { get; set; } + + /// + /// Gets or Sets OrgTier + /// + [DataMember(Name = "org_tier", IsRequired = true, EmitDefaultValue = true)] + public OrganisationTier OrgTier { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected OperatorAllowlistContractStatusInternal() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of the contract (required). + /// status (required). + /// details (required). + /// When the contract status was created (required). + /// Who created the status (required). + /// The name of the organisation associated with this contract (required). + /// orgTier (required). + public OperatorAllowlistContractStatusInternal(Chain chain = default(Chain), string contractAddress = default(string), OperatorAllowlistStatus status = default(OperatorAllowlistStatus), OperatorAllowlistStatusDetails details = default(OperatorAllowlistStatusDetails), DateTime createdAt = default(DateTime), string createdBy = default(string), string orgName = default(string), OrganisationTier orgTier = default(OrganisationTier)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.ContractAddress = contractAddress; + this.Status = status; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.Details = details; + this.CreatedAt = createdAt; + // to ensure "createdBy" is required (not null) + if (createdBy == null) + { + throw new ArgumentNullException("createdBy is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.CreatedBy = createdBy; + // to ensure "orgName" is required (not null) + if (orgName == null) + { + throw new ArgumentNullException("orgName is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.OrgName = orgName; + this.OrgTier = orgTier; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of the contract + /// + /// The address of the contract + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// Gets or Sets Details + /// + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public OperatorAllowlistStatusDetails Details { get; set; } + + /// + /// When the contract status was created + /// + /// When the contract status was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Who created the status + /// + /// Who created the status + /// user@immutable.com + [DataMember(Name = "created_by", IsRequired = true, EmitDefaultValue = true)] + public string CreatedBy { get; set; } + + /// + /// The name of the organisation associated with this contract + /// + /// The name of the organisation associated with this contract + /// Immutable + [DataMember(Name = "org_name", IsRequired = true, EmitDefaultValue = true)] + public string OrgName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class OperatorAllowlistContractStatusInternal {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); + sb.Append(" OrgName: ").Append(OrgName).Append("\n"); + sb.Append(" OrgTier: ").Append(OrgTier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatus.cs new file mode 100644 index 00000000..7474e43f --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatus.cs @@ -0,0 +1,66 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The status of a contract on the operator allowlist + /// + /// The status of a contract on the operator allowlist + [JsonConverter(typeof(StringEnumConverter))] + public enum OperatorAllowlistStatus + { + /// + /// Enum Requested for value: requested + /// + [EnumMember(Value = "requested")] + Requested = 1, + + /// + /// Enum Approved for value: approved + /// + [EnumMember(Value = "approved")] + Approved = 2, + + /// + /// Enum Rejected for value: rejected + /// + [EnumMember(Value = "rejected")] + Rejected = 3, + + /// + /// Enum Removed for value: removed + /// + [EnumMember(Value = "removed")] + Removed = 4, + + /// + /// Enum Added for value: added + /// + [EnumMember(Value = "added")] + Added = 5 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatusDetails.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatusDetails.cs new file mode 100644 index 00000000..678162b3 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatusDetails.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.Model +{ + /// + /// The operator allowlist status details + /// + [JsonConverter(typeof(OperatorAllowlistStatusDetailsJsonConverter))] + [DataContract(Name = "OperatorAllowlistStatusDetails")] + public partial class OperatorAllowlistStatusDetails : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of OperatorAllowlistStatusRequested. + public OperatorAllowlistStatusDetails(OperatorAllowlistStatusRequested actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of OperatorAllowlistStatusUpdated. + public OperatorAllowlistStatusDetails(OperatorAllowlistStatusUpdated actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(OperatorAllowlistStatusRequested) || value is OperatorAllowlistStatusRequested) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(OperatorAllowlistStatusUpdated) || value is OperatorAllowlistStatusUpdated) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: OperatorAllowlistStatusRequested, OperatorAllowlistStatusUpdated"); + } + } + } + + /// + /// Get the actual instance of `OperatorAllowlistStatusRequested`. If the actual instance is not `OperatorAllowlistStatusRequested`, + /// the InvalidClassException will be thrown + /// + /// An instance of OperatorAllowlistStatusRequested + public OperatorAllowlistStatusRequested GetOperatorAllowlistStatusRequested() + { + return (OperatorAllowlistStatusRequested)this.ActualInstance; + } + + /// + /// Get the actual instance of `OperatorAllowlistStatusUpdated`. If the actual instance is not `OperatorAllowlistStatusUpdated`, + /// the InvalidClassException will be thrown + /// + /// An instance of OperatorAllowlistStatusUpdated + public OperatorAllowlistStatusUpdated GetOperatorAllowlistStatusUpdated() + { + return (OperatorAllowlistStatusUpdated)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OperatorAllowlistStatusDetails {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, OperatorAllowlistStatusDetails.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of OperatorAllowlistStatusDetails + /// + /// JSON string + /// An instance of OperatorAllowlistStatusDetails + public static OperatorAllowlistStatusDetails FromJson(string jsonString) + { + OperatorAllowlistStatusDetails newOperatorAllowlistStatusDetails = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newOperatorAllowlistStatusDetails; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(OperatorAllowlistStatusRequested).GetProperty("AdditionalProperties") == null) + { + newOperatorAllowlistStatusDetails = new OperatorAllowlistStatusDetails(JsonConvert.DeserializeObject(jsonString, OperatorAllowlistStatusDetails.SerializerSettings)); + } + else + { + newOperatorAllowlistStatusDetails = new OperatorAllowlistStatusDetails(JsonConvert.DeserializeObject(jsonString, OperatorAllowlistStatusDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("OperatorAllowlistStatusRequested"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into OperatorAllowlistStatusRequested: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(OperatorAllowlistStatusUpdated).GetProperty("AdditionalProperties") == null) + { + newOperatorAllowlistStatusDetails = new OperatorAllowlistStatusDetails(JsonConvert.DeserializeObject(jsonString, OperatorAllowlistStatusDetails.SerializerSettings)); + } + else + { + newOperatorAllowlistStatusDetails = new OperatorAllowlistStatusDetails(JsonConvert.DeserializeObject(jsonString, OperatorAllowlistStatusDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("OperatorAllowlistStatusUpdated"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into OperatorAllowlistStatusUpdated: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newOperatorAllowlistStatusDetails; + } + + } + + /// + /// Custom JSON converter for OperatorAllowlistStatusDetails + /// + public class OperatorAllowlistStatusDetailsJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(OperatorAllowlistStatusDetails).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return OperatorAllowlistStatusDetails.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return OperatorAllowlistStatusDetails.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatusRequested.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatusRequested.cs new file mode 100644 index 00000000..9d20ade9 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatusRequested.cs @@ -0,0 +1,96 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The request details + /// + [DataContract(Name = "OperatorAllowlistStatusRequested")] + public partial class OperatorAllowlistStatusRequested + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected OperatorAllowlistStatusRequested() { } + /// + /// Initializes a new instance of the class. + /// + /// Reason this contract needs to be added (required). + /// Attestation of whether this contract is a settlement contract (required). + public OperatorAllowlistStatusRequested(string purpose = default(string), bool isSettlementContract = default(bool)) + { + // to ensure "purpose" is required (not null) + if (purpose == null) + { + throw new ArgumentNullException("purpose is a required property for OperatorAllowlistStatusRequested and cannot be null"); + } + this.Purpose = purpose; + this.IsSettlementContract = isSettlementContract; + } + + /// + /// Reason this contract needs to be added + /// + /// Reason this contract needs to be added + /// Custom crafting contract + [DataMember(Name = "purpose", IsRequired = true, EmitDefaultValue = true)] + public string Purpose { get; set; } + + /// + /// Attestation of whether this contract is a settlement contract + /// + /// Attestation of whether this contract is a settlement contract + /// false + [DataMember(Name = "is_settlement_contract", IsRequired = true, EmitDefaultValue = true)] + public bool IsSettlementContract { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class OperatorAllowlistStatusRequested {\n"); + sb.Append(" Purpose: ").Append(Purpose).Append("\n"); + sb.Append(" IsSettlementContract: ").Append(IsSettlementContract).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatusUpdated.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatusUpdated.cs new file mode 100644 index 00000000..3c8ea3db --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OperatorAllowlistStatusUpdated.cs @@ -0,0 +1,85 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The update details + /// + [DataContract(Name = "OperatorAllowlistStatusUpdated")] + public partial class OperatorAllowlistStatusUpdated + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected OperatorAllowlistStatusUpdated() { } + /// + /// Initializes a new instance of the class. + /// + /// Why this action was performed (required). + public OperatorAllowlistStatusUpdated(string reason = default(string)) + { + // to ensure "reason" is required (not null) + if (reason == null) + { + throw new ArgumentNullException("reason is a required property for OperatorAllowlistStatusUpdated and cannot be null"); + } + this.Reason = reason; + } + + /// + /// Why this action was performed + /// + /// Why this action was performed + /// Contract meets expectations + [DataMember(Name = "reason", IsRequired = true, EmitDefaultValue = true)] + public string Reason { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class OperatorAllowlistStatusUpdated {\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Order.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Order.cs new file mode 100644 index 00000000..19aef327 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Order.cs @@ -0,0 +1,329 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Order + /// + [DataContract(Name = "Order")] + public partial class Order + { + /// + /// Order type + /// + /// Order type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum LISTING for value: LISTING + /// + [EnumMember(Value = "LISTING")] + LISTING = 1, + + /// + /// Enum BID for value: BID + /// + [EnumMember(Value = "BID")] + BID = 2, + + /// + /// Enum COLLECTIONBID for value: COLLECTION_BID + /// + [EnumMember(Value = "COLLECTION_BID")] + COLLECTIONBID = 3 + } + + + /// + /// Order type + /// + /// Order type + /// LISTING + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Order() { } + /// + /// Initializes a new instance of the class. + /// + /// accountAddress (required). + /// buy (required). + /// fees (required). + /// chain (required). + /// Time the Order is created (required). + /// Time after which the Order is considered expired (required). + /// Global Order identifier (required). + /// orderHash (required). + /// protocolData (required). + /// A random value added to the create Order request (required). + /// sell (required). + /// Digital signature generated by the user for the specific Order (required). + /// Time after which Order is considered active (required). + /// status (required). + /// Order type (required). + /// Time the Order is last updated (required). + /// fillStatus (required). + public Order(string accountAddress = default(string), List buy = default(List), List fees = default(List), Chain chain = default(Chain), DateTime createdAt = default(DateTime), DateTime endAt = default(DateTime), string id = default(string), string orderHash = default(string), ProtocolData protocolData = default(ProtocolData), string salt = default(string), List sell = default(List), string signature = default(string), DateTime startAt = default(DateTime), OrderStatus status = default(OrderStatus), TypeEnum type = default(TypeEnum), DateTime updatedAt = default(DateTime), FillStatus fillStatus = default(FillStatus)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for Order and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for Order and cannot be null"); + } + this.Buy = buy; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for Order and cannot be null"); + } + this.Fees = fees; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Order and cannot be null"); + } + this.Chain = chain; + this.CreatedAt = createdAt; + this.EndAt = endAt; + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for Order and cannot be null"); + } + this.Id = id; + // to ensure "orderHash" is required (not null) + if (orderHash == null) + { + throw new ArgumentNullException("orderHash is a required property for Order and cannot be null"); + } + this.OrderHash = orderHash; + // to ensure "protocolData" is required (not null) + if (protocolData == null) + { + throw new ArgumentNullException("protocolData is a required property for Order and cannot be null"); + } + this.ProtocolData = protocolData; + // to ensure "salt" is required (not null) + if (salt == null) + { + throw new ArgumentNullException("salt is a required property for Order and cannot be null"); + } + this.Salt = salt; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for Order and cannot be null"); + } + this.Sell = sell; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for Order and cannot be null"); + } + this.Signature = signature; + this.StartAt = startAt; + // to ensure "status" is required (not null) + if (status == null) + { + throw new ArgumentNullException("status is a required property for Order and cannot be null"); + } + this.Status = status; + this.Type = type; + this.UpdatedAt = updatedAt; + // to ensure "fillStatus" is required (not null) + if (fillStatus == null) + { + throw new ArgumentNullException("fillStatus is a required property for Order and cannot be null"); + } + this.FillStatus = fillStatus; + } + + /// + /// Gets or Sets AccountAddress + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// Gets or Sets Buy + /// + /// [{"type":"NATIVE","amount":"9750000000000000000","contract_address":"0x0165878A594ca255338adfa4d48449f69242Eb8F"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Gets or Sets Fees + /// + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Time the Order is created + /// + /// Time the Order is created + /// 2022-03-07T07:20:50.520Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Time after which the Order is considered expired + /// + /// Time after which the Order is considered expired + /// 2022-03-10T05:00:50.520Z + [DataMember(Name = "end_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime EndAt { get; set; } + + /// + /// Global Order identifier + /// + /// Global Order identifier + /// 018792C9-4AD7-8EC4-4038-9E05C598534A + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets OrderHash + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "order_hash", IsRequired = true, EmitDefaultValue = true)] + public string OrderHash { get; set; } + + /// + /// Gets or Sets ProtocolData + /// + [DataMember(Name = "protocol_data", IsRequired = true, EmitDefaultValue = true)] + public ProtocolData ProtocolData { get; set; } + + /// + /// A random value added to the create Order request + /// + /// A random value added to the create Order request + /// 12686911856931635052326433555881236148 + [DataMember(Name = "salt", IsRequired = true, EmitDefaultValue = true)] + public string Salt { get; set; } + + /// + /// Gets or Sets Sell + /// + /// [{"type":"ERC721","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","token_id":"1"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Digital signature generated by the user for the specific Order + /// + /// Digital signature generated by the user for the specific Order + /// 0x + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Time after which Order is considered active + /// + /// Time after which Order is considered active + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "start_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime StartAt { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public OrderStatus Status { get; set; } + + /// + /// Time the Order is last updated + /// + /// Time the Order is last updated + /// 2022-03-07T07:20:50.520Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets FillStatus + /// + [DataMember(Name = "fill_status", IsRequired = true, EmitDefaultValue = true)] + public FillStatus FillStatus { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Order {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" EndAt: ").Append(EndAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); + sb.Append(" ProtocolData: ").Append(ProtocolData).Append("\n"); + sb.Append(" Salt: ").Append(Salt).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" StartAt: ").Append(StartAt).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" FillStatus: ").Append(FillStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OrderStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OrderStatus.cs new file mode 100644 index 00000000..80a33884 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OrderStatus.cs @@ -0,0 +1,434 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.Model +{ + /// + /// The Order status + /// + [JsonConverter(typeof(OrderStatusJsonConverter))] + [DataContract(Name = "OrderStatus")] + public partial class OrderStatus : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of CancelledOrderStatus. + public OrderStatus(CancelledOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of PendingOrderStatus. + public OrderStatus(PendingOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ActiveOrderStatus. + public OrderStatus(ActiveOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of InactiveOrderStatus. + public OrderStatus(InactiveOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of FilledOrderStatus. + public OrderStatus(FilledOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ExpiredOrderStatus. + public OrderStatus(ExpiredOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(ActiveOrderStatus) || value is ActiveOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(CancelledOrderStatus) || value is CancelledOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ExpiredOrderStatus) || value is ExpiredOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(FilledOrderStatus) || value is FilledOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(InactiveOrderStatus) || value is InactiveOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(PendingOrderStatus) || value is PendingOrderStatus) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: ActiveOrderStatus, CancelledOrderStatus, ExpiredOrderStatus, FilledOrderStatus, InactiveOrderStatus, PendingOrderStatus"); + } + } + } + + /// + /// Get the actual instance of `CancelledOrderStatus`. If the actual instance is not `CancelledOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of CancelledOrderStatus + public CancelledOrderStatus GetCancelledOrderStatus() + { + return (CancelledOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `PendingOrderStatus`. If the actual instance is not `PendingOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of PendingOrderStatus + public PendingOrderStatus GetPendingOrderStatus() + { + return (PendingOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `ActiveOrderStatus`. If the actual instance is not `ActiveOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of ActiveOrderStatus + public ActiveOrderStatus GetActiveOrderStatus() + { + return (ActiveOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `InactiveOrderStatus`. If the actual instance is not `InactiveOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of InactiveOrderStatus + public InactiveOrderStatus GetInactiveOrderStatus() + { + return (InactiveOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `FilledOrderStatus`. If the actual instance is not `FilledOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of FilledOrderStatus + public FilledOrderStatus GetFilledOrderStatus() + { + return (FilledOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `ExpiredOrderStatus`. If the actual instance is not `ExpiredOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of ExpiredOrderStatus + public ExpiredOrderStatus GetExpiredOrderStatus() + { + return (ExpiredOrderStatus)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderStatus {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, OrderStatus.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of OrderStatus + /// + /// JSON string + /// An instance of OrderStatus + public static OrderStatus FromJson(string jsonString) + { + OrderStatus newOrderStatus = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newOrderStatus; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ActiveOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ActiveOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActiveOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(CancelledOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("CancelledOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into CancelledOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ExpiredOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ExpiredOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ExpiredOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(FilledOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("FilledOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into FilledOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(InactiveOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("InactiveOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into InactiveOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(PendingOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("PendingOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into PendingOrderStatus: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newOrderStatus; + } + + } + + /// + /// Custom JSON converter for OrderStatus + /// + public class OrderStatusJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(OrderStatus).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return OrderStatus.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return OrderStatus.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OrderStatusName.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OrderStatusName.cs new file mode 100644 index 00000000..a5c1eb34 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OrderStatusName.cs @@ -0,0 +1,72 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The Order status + /// + /// The Order status + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderStatusName + { + /// + /// Enum PENDING for value: PENDING + /// + [EnumMember(Value = "PENDING")] + PENDING = 1, + + /// + /// Enum ACTIVE for value: ACTIVE + /// + [EnumMember(Value = "ACTIVE")] + ACTIVE = 2, + + /// + /// Enum INACTIVE for value: INACTIVE + /// + [EnumMember(Value = "INACTIVE")] + INACTIVE = 3, + + /// + /// Enum FILLED for value: FILLED + /// + [EnumMember(Value = "FILLED")] + FILLED = 4, + + /// + /// Enum EXPIRED for value: EXPIRED + /// + [EnumMember(Value = "EXPIRED")] + EXPIRED = 5, + + /// + /// Enum CANCELLED for value: CANCELLED + /// + [EnumMember(Value = "CANCELLED")] + CANCELLED = 6 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OrganisationTier.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OrganisationTier.cs new file mode 100644 index 00000000..1eb8fe08 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/OrganisationTier.cs @@ -0,0 +1,66 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The tier of the organisation + /// + /// The tier of the organisation + [JsonConverter(typeof(StringEnumConverter))] + public enum OrganisationTier + { + /// + /// Enum Common for value: common + /// + [EnumMember(Value = "common")] + Common = 1, + + /// + /// Enum Uncommon for value: uncommon + /// + [EnumMember(Value = "uncommon")] + Uncommon = 2, + + /// + /// Enum Rare for value: rare + /// + [EnumMember(Value = "rare")] + Rare = 3, + + /// + /// Enum Epic for value: epic + /// + [EnumMember(Value = "epic")] + Epic = 4, + + /// + /// Enum Legendary for value: legendary + /// + [EnumMember(Value = "legendary")] + Legendary = 5 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Page.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Page.cs similarity index 92% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Page.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Page.cs index 523cd80c..15976195 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Page.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Page.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// Pagination properties diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PaymentAmount.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/PaymentAmount.cs similarity index 54% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PaymentAmount.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/PaymentAmount.cs index de45ca8e..c3a2e3ad 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PaymentAmount.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/PaymentAmount.cs @@ -1,58 +1,64 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// Amount details + /// Amount details /// [DataContract(Name = "PaymentAmount")] - public class PaymentAmount + public partial class PaymentAmount { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected PaymentAmount() - { - } - + protected PaymentAmount() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// - /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) - /// (required). - /// + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) (required). /// The token amount value in ETH (required). - public PaymentAmount(string value = default, string valueInEth = default) + public PaymentAmount(string value = default(string), string valueInEth = default(string)) { // to ensure "value" is required (not null) if (value == null) + { throw new ArgumentNullException("value is a required property for PaymentAmount and cannot be null"); - Value = value; + } + this.Value = value; // to ensure "valueInEth" is required (not null) if (valueInEth == null) - throw new ArgumentNullException( - "valueInEth is a required property for PaymentAmount and cannot be null"); - ValueInEth = valueInEth; + { + throw new ArgumentNullException("valueInEth is a required property for PaymentAmount and cannot be null"); + } + this.ValueInEth = valueInEth; } /// - /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) /// /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) /// 9750000000000000000 @@ -60,7 +66,7 @@ public PaymentAmount(string value = default, string valueInEth = default) public string Value { get; set; } /// - /// The token amount value in ETH + /// The token amount value in ETH /// /// The token amount value in ETH /// 9750000000000000000 @@ -68,12 +74,12 @@ public PaymentAmount(string value = default, string valueInEth = default) public string ValueInEth { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PaymentAmount {\n"); sb.Append(" Value: ").Append(Value).Append("\n"); sb.Append(" ValueInEth: ").Append(ValueInEth).Append("\n"); @@ -82,12 +88,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/PendingOrderStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/PendingOrderStatus.cs new file mode 100644 index 00000000..b6395a72 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/PendingOrderStatus.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// PendingOrderStatus + /// + [DataContract(Name = "PendingOrderStatus")] + public partial class PendingOrderStatus + { + /// + /// The order status that indicates the order is yet to be active due to various reasons. + /// + /// The order status that indicates the order is yet to be active due to various reasons. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum PENDING for value: PENDING + /// + [EnumMember(Value = "PENDING")] + PENDING = 1 + } + + + /// + /// The order status that indicates the order is yet to be active due to various reasons. + /// + /// The order status that indicates the order is yet to be active due to various reasons. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PendingOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The order status that indicates the order is yet to be active due to various reasons. (required). + /// Whether the order has been evaluated after its creation (required). + /// Whether the order has reached its specified start time (required). + public PendingOrderStatus(NameEnum name = default(NameEnum), bool evaluated = default(bool), bool started = default(bool)) + { + this.Name = name; + this.Evaluated = evaluated; + this.Started = started; + } + + /// + /// Whether the order has been evaluated after its creation + /// + /// Whether the order has been evaluated after its creation + /// false + [DataMember(Name = "evaluated", IsRequired = true, EmitDefaultValue = true)] + public bool Evaluated { get; set; } + + /// + /// Whether the order has reached its specified start time + /// + /// Whether the order has reached its specified start time + /// false + [DataMember(Name = "started", IsRequired = true, EmitDefaultValue = true)] + public bool Started { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PendingOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Evaluated: ").Append(Evaluated).Append("\n"); + sb.Append(" Started: ").Append(Started).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ProtocolData.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ProtocolData.cs new file mode 100644 index 00000000..1ef93554 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/ProtocolData.cs @@ -0,0 +1,164 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// ProtocolData + /// + [DataContract(Name = "ProtocolData")] + public partial class ProtocolData + { + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderTypeEnum + { + /// + /// Enum FULLRESTRICTED for value: FULL_RESTRICTED + /// + [EnumMember(Value = "FULL_RESTRICTED")] + FULLRESTRICTED = 1, + + /// + /// Enum PARTIALRESTRICTED for value: PARTIAL_RESTRICTED + /// + [EnumMember(Value = "PARTIAL_RESTRICTED")] + PARTIALRESTRICTED = 2 + } + + + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED + /// FULL_RESTRICTED + [DataMember(Name = "order_type", IsRequired = true, EmitDefaultValue = true)] + public OrderTypeEnum OrderType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ProtocolData() { } + /// + /// Initializes a new instance of the class. + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED (required). + /// big.Int or uint256 string for order counter (required). + /// Immutable zone address (required). + /// Immutable Seaport contract address (required). + /// Immutable Seaport contract version (required). + public ProtocolData(OrderTypeEnum orderType = default(OrderTypeEnum), string counter = default(string), string zoneAddress = default(string), string seaportAddress = default(string), string seaportVersion = default(string)) + { + this.OrderType = orderType; + // to ensure "counter" is required (not null) + if (counter == null) + { + throw new ArgumentNullException("counter is a required property for ProtocolData and cannot be null"); + } + this.Counter = counter; + // to ensure "zoneAddress" is required (not null) + if (zoneAddress == null) + { + throw new ArgumentNullException("zoneAddress is a required property for ProtocolData and cannot be null"); + } + this.ZoneAddress = zoneAddress; + // to ensure "seaportAddress" is required (not null) + if (seaportAddress == null) + { + throw new ArgumentNullException("seaportAddress is a required property for ProtocolData and cannot be null"); + } + this.SeaportAddress = seaportAddress; + // to ensure "seaportVersion" is required (not null) + if (seaportVersion == null) + { + throw new ArgumentNullException("seaportVersion is a required property for ProtocolData and cannot be null"); + } + this.SeaportVersion = seaportVersion; + } + + /// + /// big.Int or uint256 string for order counter + /// + /// big.Int or uint256 string for order counter + /// 92315562 + [DataMember(Name = "counter", IsRequired = true, EmitDefaultValue = true)] + public string Counter { get; set; } + + /// + /// Immutable zone address + /// + /// Immutable zone address + /// 0x12 + [DataMember(Name = "zone_address", IsRequired = true, EmitDefaultValue = true)] + public string ZoneAddress { get; set; } + + /// + /// Immutable Seaport contract address + /// + /// Immutable Seaport contract address + /// 0x12 + [DataMember(Name = "seaport_address", IsRequired = true, EmitDefaultValue = true)] + public string SeaportAddress { get; set; } + + /// + /// Immutable Seaport contract version + /// + /// Immutable Seaport contract version + /// 1.5 + [DataMember(Name = "seaport_version", IsRequired = true, EmitDefaultValue = true)] + public string SeaportVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ProtocolData {\n"); + sb.Append(" OrderType: ").Append(OrderType).Append("\n"); + sb.Append(" Counter: ").Append(Counter).Append("\n"); + sb.Append(" ZoneAddress: ").Append(ZoneAddress).Append("\n"); + sb.Append(" SeaportAddress: ").Append(SeaportAddress).Append("\n"); + sb.Append(" SeaportVersion: ").Append(SeaportVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForNFTsResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/QuotesForNFTsResult.cs similarity index 54% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForNFTsResult.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/QuotesForNFTsResult.cs index b87dd9d7..70917826 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForNFTsResult.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/QuotesForNFTsResult.cs @@ -1,75 +1,82 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// Quotes for NFTs result + /// Quotes for NFTs result /// [DataContract(Name = "QuotesForNFTsResult")] - public class QuotesForNFTsResult + public partial class QuotesForNFTsResult { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected QuotesForNFTsResult() - { - } - + protected QuotesForNFTsResult() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// List of quotes (required). /// page (required). - public QuotesForNFTsResult(List result = default, Page page = default) + public QuotesForNFTsResult(List result = default(List), Page page = default(Page)) { // to ensure "result" is required (not null) if (result == null) - throw new ArgumentNullException( - "result is a required property for QuotesForNFTsResult and cannot be null"); - Result = result; + { + throw new ArgumentNullException("result is a required property for QuotesForNFTsResult and cannot be null"); + } + this.Result = result; // to ensure "page" is required (not null) if (page == null) - throw new ArgumentNullException( - "page is a required property for QuotesForNFTsResult and cannot be null"); - Page = page; + { + throw new ArgumentNullException("page is a required property for QuotesForNFTsResult and cannot be null"); + } + this.Page = page; } /// - /// List of quotes + /// List of quotes /// /// List of quotes [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] public List Result { get; set; } /// - /// Gets or Sets Page + /// Gets or Sets Page /// [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] public Page Page { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class QuotesForNFTsResult {\n"); sb.Append(" Result: ").Append(Result).Append("\n"); sb.Append(" Page: ").Append(Page).Append("\n"); @@ -78,12 +85,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForStacksResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/QuotesForStacksResult.cs similarity index 91% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForStacksResult.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/QuotesForStacksResult.cs index a405a4c4..3120f295 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/QuotesForStacksResult.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/QuotesForStacksResult.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// Quotes for stacks result diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshCollectionMetadataRequest.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshCollectionMetadataRequest.cs new file mode 100644 index 00000000..d3e24595 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshCollectionMetadataRequest.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// RefreshCollectionMetadataRequest + /// + [DataContract(Name = "RefreshCollectionMetadataRequest")] + public partial class RefreshCollectionMetadataRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshCollectionMetadataRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// collectionMetadata (required). + public RefreshCollectionMetadataRequest(CollectionMetadata collectionMetadata = default(CollectionMetadata)) + { + // to ensure "collectionMetadata" is required (not null) + if (collectionMetadata == null) + { + throw new ArgumentNullException("collectionMetadata is a required property for RefreshCollectionMetadataRequest and cannot be null"); + } + this.CollectionMetadata = collectionMetadata; + } + + /// + /// Gets or Sets CollectionMetadata + /// + [DataMember(Name = "collection_metadata", IsRequired = true, EmitDefaultValue = true)] + public CollectionMetadata CollectionMetadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshCollectionMetadataRequest {\n"); + sb.Append(" CollectionMetadata: ").Append(CollectionMetadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshCollectionMetadataResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshCollectionMetadataResult.cs new file mode 100644 index 00000000..c1d7e5fe --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshCollectionMetadataResult.cs @@ -0,0 +1,111 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// RefreshCollectionMetadataResult + /// + [DataContract(Name = "RefreshCollectionMetadataResult")] + public partial class RefreshCollectionMetadataResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshCollectionMetadataResult() { } + /// + /// Initializes a new instance of the class. + /// + /// contractAddress (required). + /// chain (required). + /// collectionMetadata (required). + public RefreshCollectionMetadataResult(string contractAddress = default(string), Chain chain = default(Chain), CollectionMetadata collectionMetadata = default(CollectionMetadata)) + { + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for RefreshCollectionMetadataResult and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for RefreshCollectionMetadataResult and cannot be null"); + } + this.Chain = chain; + // to ensure "collectionMetadata" is required (not null) + if (collectionMetadata == null) + { + throw new ArgumentNullException("collectionMetadata is a required property for RefreshCollectionMetadataResult and cannot be null"); + } + this.CollectionMetadata = collectionMetadata; + } + + /// + /// Gets or Sets ContractAddress + /// + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Gets or Sets CollectionMetadata + /// + [DataMember(Name = "collection_metadata", IsRequired = true, EmitDefaultValue = true)] + public CollectionMetadata CollectionMetadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshCollectionMetadataResult {\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" CollectionMetadata: ").Append(CollectionMetadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshMetadataByID.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshMetadataByID.cs new file mode 100644 index 00000000..7b8d1c08 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshMetadataByID.cs @@ -0,0 +1,191 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// RefreshMetadataByID + /// + [DataContract(Name = "RefreshMetadataByID")] + public partial class RefreshMetadataByID + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshMetadataByID() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external link of the NFT (required). + /// The animation url of the NFT (required). + /// The youtube link of the NFT (required). + /// List of Metadata attributes (required). + /// Metadata id in UUIDv4 format (required). + public RefreshMetadataByID(string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), Guid metadataId = default(Guid)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for RefreshMetadataByID and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for RefreshMetadataByID and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for RefreshMetadataByID and cannot be null"); + } + this.Image = image; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for RefreshMetadataByID and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for RefreshMetadataByID and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for RefreshMetadataByID and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for RefreshMetadataByID and cannot be null"); + } + this.Attributes = attributes; + this.MetadataId = metadataId; + } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external link of the NFT + /// + /// The external link of the NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube link of the NFT + /// + /// The youtube link of the NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Metadata id in UUIDv4 format + /// + /// Metadata id in UUIDv4 format + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "metadata_id", IsRequired = true, EmitDefaultValue = true)] + public Guid MetadataId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshMetadataByID {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" MetadataId: ").Append(MetadataId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshMetadataByIDRequest.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshMetadataByIDRequest.cs new file mode 100644 index 00000000..b1c426b4 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshMetadataByIDRequest.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Request body for refreshing metadata by id. Total size of this list should not exceed 228 KiB + /// + [DataContract(Name = "RefreshMetadataByIDRequest")] + public partial class RefreshMetadataByIDRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshMetadataByIDRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// metadata (required). + public RefreshMetadataByIDRequest(List metadata = default(List)) + { + // to ensure "metadata" is required (not null) + if (metadata == null) + { + throw new ArgumentNullException("metadata is a required property for RefreshMetadataByIDRequest and cannot be null"); + } + this.Metadata = metadata; + } + + /// + /// Gets or Sets Metadata + /// + [DataMember(Name = "metadata", IsRequired = true, EmitDefaultValue = true)] + public List Metadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshMetadataByIDRequest {\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshMetadataByTokenID.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshMetadataByTokenID.cs new file mode 100644 index 00000000..d60870fd --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshMetadataByTokenID.cs @@ -0,0 +1,196 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// RefreshMetadataByTokenID + /// + [DataContract(Name = "RefreshMetadataByTokenID")] + public partial class RefreshMetadataByTokenID + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshMetadataByTokenID() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external link of the NFT (required). + /// The animation url of the NFT (required). + /// The youtube link of the NFT (required). + /// List of Metadata attributes (required). + /// An `uint256` token id as string (required). + public RefreshMetadataByTokenID(string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), string tokenId = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.Image = image; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.Attributes = attributes; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.TokenId = tokenId; + } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external link of the NFT + /// + /// The external link of the NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube link of the NFT + /// + /// The youtube link of the NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshMetadataByTokenID {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshNFTMetadataByTokenIDRequest.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshNFTMetadataByTokenIDRequest.cs new file mode 100644 index 00000000..cf1313b3 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshNFTMetadataByTokenIDRequest.cs @@ -0,0 +1,84 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// RefreshNFTMetadataByTokenIDRequest + /// + [DataContract(Name = "RefreshNFTMetadataByTokenIDRequest")] + public partial class RefreshNFTMetadataByTokenIDRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshNFTMetadataByTokenIDRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB (required). + public RefreshNFTMetadataByTokenIDRequest(List nftMetadata = default(List)) + { + // to ensure "nftMetadata" is required (not null) + if (nftMetadata == null) + { + throw new ArgumentNullException("nftMetadata is a required property for RefreshNFTMetadataByTokenIDRequest and cannot be null"); + } + this.NftMetadata = nftMetadata; + } + + /// + /// List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB + /// + /// List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB + [DataMember(Name = "nft_metadata", IsRequired = true, EmitDefaultValue = true)] + public List NftMetadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshNFTMetadataByTokenIDRequest {\n"); + sb.Append(" NftMetadata: ").Append(NftMetadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshableNFTAttributes.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshableNFTAttributes.cs new file mode 100644 index 00000000..5b9bf65e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/RefreshableNFTAttributes.cs @@ -0,0 +1,180 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// RefreshableNFTAttributes + /// + [DataContract(Name = "RefreshableNFTAttributes")] + public partial class RefreshableNFTAttributes + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshableNFTAttributes() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external link of the NFT (required). + /// The animation url of the NFT (required). + /// The youtube link of the NFT (required). + /// List of Metadata attributes (required). + public RefreshableNFTAttributes(string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.Image = image; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.Attributes = attributes; + } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external link of the NFT + /// + /// The external link of the NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube link of the NFT + /// + /// The youtube link of the NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshableNFTAttributes {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SaleFee.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SaleFee.cs new file mode 100644 index 00000000..acbd1dcd --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SaleFee.cs @@ -0,0 +1,111 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// SaleFee + /// + [DataContract(Name = "SaleFee")] + public partial class SaleFee + { + /// + /// Fee type + /// + /// Fee type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ROYALTY for value: ROYALTY + /// + [EnumMember(Value = "ROYALTY")] + ROYALTY = 1 + } + + + /// + /// Fee type + /// + /// Fee type + /// ROYALTY + [DataMember(Name = "type", EmitDefaultValue = false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Fee payable to recipient upon settlement. + /// Fee type. + /// Wallet address of fee recipient. + public SaleFee(string amount = default(string), TypeEnum? type = default(TypeEnum?), string recipient = default(string)) + { + this.Amount = amount; + this.Type = type; + this.Recipient = recipient; + } + + /// + /// Fee payable to recipient upon settlement + /// + /// Fee payable to recipient upon settlement + /// 200 + [DataMember(Name = "amount", EmitDefaultValue = false)] + public string Amount { get; set; } + + /// + /// Wallet address of fee recipient + /// + /// Wallet address of fee recipient + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + [DataMember(Name = "recipient", EmitDefaultValue = false)] + public string Recipient { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SaleFee {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SalePayment.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SalePayment.cs new file mode 100644 index 00000000..3be27716 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SalePayment.cs @@ -0,0 +1,131 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// SalePayment + /// + [DataContract(Name = "SalePayment")] + public partial class SalePayment + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SalePayment() { } + /// + /// Initializes a new instance of the class. + /// + /// token (required). + /// The base price of the sale not including any fees (required). + /// The total price of the sale. Includes the sum of all fees (required). + /// The fees associated with this sale (required). + public SalePayment(SalePaymentToken token = default(SalePaymentToken), string priceExcludingFees = default(string), string priceIncludingFees = default(string), List fees = default(List)) + { + // to ensure "token" is required (not null) + if (token == null) + { + throw new ArgumentNullException("token is a required property for SalePayment and cannot be null"); + } + this.Token = token; + // to ensure "priceExcludingFees" is required (not null) + if (priceExcludingFees == null) + { + throw new ArgumentNullException("priceExcludingFees is a required property for SalePayment and cannot be null"); + } + this.PriceExcludingFees = priceExcludingFees; + // to ensure "priceIncludingFees" is required (not null) + if (priceIncludingFees == null) + { + throw new ArgumentNullException("priceIncludingFees is a required property for SalePayment and cannot be null"); + } + this.PriceIncludingFees = priceIncludingFees; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for SalePayment and cannot be null"); + } + this.Fees = fees; + } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] + public SalePaymentToken Token { get; set; } + + /// + /// The base price of the sale not including any fees + /// + /// The base price of the sale not including any fees + /// 180 + [DataMember(Name = "price_excluding_fees", IsRequired = true, EmitDefaultValue = true)] + public string PriceExcludingFees { get; set; } + + /// + /// The total price of the sale. Includes the sum of all fees + /// + /// The total price of the sale. Includes the sum of all fees + /// 200 + [DataMember(Name = "price_including_fees", IsRequired = true, EmitDefaultValue = true)] + public string PriceIncludingFees { get; set; } + + /// + /// The fees associated with this sale + /// + /// The fees associated with this sale + /// [{"address":"0xB0F3749458169B7Ad51B5503CC3649DE55c2D0D2","amount":"20","type":"ROYALTY"}] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SalePayment {\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" PriceExcludingFees: ").Append(PriceExcludingFees).Append("\n"); + sb.Append(" PriceIncludingFees: ").Append(PriceIncludingFees).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SalePaymentToken.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SalePaymentToken.cs new file mode 100644 index 00000000..5e42b6db --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SalePaymentToken.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.Model +{ + /// + /// The type of payment token + /// + [JsonConverter(typeof(SalePaymentTokenJsonConverter))] + [DataContract(Name = "SalePayment_token")] + public partial class SalePaymentToken : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ActivityToken. + public SalePaymentToken(ActivityToken actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ActivityNativeToken. + public SalePaymentToken(ActivityNativeToken actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(ActivityNativeToken) || value is ActivityNativeToken) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ActivityToken) || value is ActivityToken) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: ActivityNativeToken, ActivityToken"); + } + } + } + + /// + /// Get the actual instance of `ActivityToken`. If the actual instance is not `ActivityToken`, + /// the InvalidClassException will be thrown + /// + /// An instance of ActivityToken + public ActivityToken GetActivityToken() + { + return (ActivityToken)this.ActualInstance; + } + + /// + /// Get the actual instance of `ActivityNativeToken`. If the actual instance is not `ActivityNativeToken`, + /// the InvalidClassException will be thrown + /// + /// An instance of ActivityNativeToken + public ActivityNativeToken GetActivityNativeToken() + { + return (ActivityNativeToken)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SalePaymentToken {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, SalePaymentToken.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of SalePaymentToken + /// + /// JSON string + /// An instance of SalePaymentToken + public static SalePaymentToken FromJson(string jsonString) + { + SalePaymentToken newSalePaymentToken = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newSalePaymentToken; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ActivityNativeToken).GetProperty("AdditionalProperties") == null) + { + newSalePaymentToken = new SalePaymentToken(JsonConvert.DeserializeObject(jsonString, SalePaymentToken.SerializerSettings)); + } + else + { + newSalePaymentToken = new SalePaymentToken(JsonConvert.DeserializeObject(jsonString, SalePaymentToken.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ActivityNativeToken"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActivityNativeToken: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ActivityToken).GetProperty("AdditionalProperties") == null) + { + newSalePaymentToken = new SalePaymentToken(JsonConvert.DeserializeObject(jsonString, SalePaymentToken.SerializerSettings)); + } + else + { + newSalePaymentToken = new SalePaymentToken(JsonConvert.DeserializeObject(jsonString, SalePaymentToken.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ActivityToken"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActivityToken: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newSalePaymentToken; + } + + } + + /// + /// Custom JSON converter for SalePaymentToken + /// + public class SalePaymentTokenJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(SalePaymentToken).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return SalePaymentToken.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return SalePaymentToken.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SearchNFTsResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SearchNFTsResult.cs new file mode 100644 index 00000000..49da8550 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SearchNFTsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Search NFTs result + /// + [DataContract(Name = "SearchNFTsResult")] + public partial class SearchNFTsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SearchNFTsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of nft bundles (required). + /// page (required). + public SearchNFTsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for SearchNFTsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for SearchNFTsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of nft bundles + /// + /// List of nft bundles + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SearchNFTsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/SearchStacksResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SearchStacksResult.cs similarity index 54% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/SearchStacksResult.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SearchStacksResult.cs index 129958b4..ee89acfd 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/SearchStacksResult.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SearchStacksResult.cs @@ -1,75 +1,82 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; +using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; using System.Runtime.Serialization; using System.Text; +using System.Text.RegularExpressions; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// - /// Search stacks result + /// Search stacks result /// [DataContract(Name = "SearchStacksResult")] - public class SearchStacksResult + public partial class SearchStacksResult { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected SearchStacksResult() - { - } - + protected SearchStacksResult() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// List of stack bundles (required). /// page (required). - public SearchStacksResult(List result = default, Page page = default) + public SearchStacksResult(List result = default(List), Page page = default(Page)) { // to ensure "result" is required (not null) if (result == null) - throw new ArgumentNullException( - "result is a required property for SearchStacksResult and cannot be null"); - Result = result; + { + throw new ArgumentNullException("result is a required property for SearchStacksResult and cannot be null"); + } + this.Result = result; // to ensure "page" is required (not null) if (page == null) - throw new ArgumentNullException( - "page is a required property for SearchStacksResult and cannot be null"); - Page = page; + { + throw new ArgumentNullException("page is a required property for SearchStacksResult and cannot be null"); + } + this.Page = page; } /// - /// List of stack bundles + /// List of stack bundles /// /// List of stack bundles [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] public List Result { get; set; } /// - /// Gets or Sets Page + /// Gets or Sets Page /// [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] public Page Page { get; set; } /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class SearchStacksResult {\n"); sb.Append(" Result: ").Append(Result).Append("\n"); sb.Append(" Page: ").Append(Page).Append("\n"); @@ -78,12 +85,14 @@ public override string ToString() } /// - /// Returns the JSON string presentation of the object + /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { - return JsonConvert.SerializeObject(this, Formatting.Indented); + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } + } -} \ No newline at end of file + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SignCraftingRequest.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SignCraftingRequest.cs new file mode 100644 index 00000000..4d7e818e --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SignCraftingRequest.cs @@ -0,0 +1,125 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// SignCraftingRequest + /// + [DataContract(Name = "SignCraftingRequest")] + public partial class SignCraftingRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SignCraftingRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// multiCaller (required). + /// The id of this request in the system that originates the crafting request, specified as a 32 byte hex string (required). + /// The calls to be signed (required). + /// The expiration time of the request (required). + public SignCraftingRequest(SignCraftingRequestMultiCaller multiCaller = default(SignCraftingRequestMultiCaller), string referenceId = default(string), List calls = default(List), DateTime expiresAt = default(DateTime)) + { + // to ensure "multiCaller" is required (not null) + if (multiCaller == null) + { + throw new ArgumentNullException("multiCaller is a required property for SignCraftingRequest and cannot be null"); + } + this.MultiCaller = multiCaller; + // to ensure "referenceId" is required (not null) + if (referenceId == null) + { + throw new ArgumentNullException("referenceId is a required property for SignCraftingRequest and cannot be null"); + } + this.ReferenceId = referenceId; + // to ensure "calls" is required (not null) + if (calls == null) + { + throw new ArgumentNullException("calls is a required property for SignCraftingRequest and cannot be null"); + } + this.Calls = calls; + this.ExpiresAt = expiresAt; + } + + /// + /// Gets or Sets MultiCaller + /// + [DataMember(Name = "multi_caller", IsRequired = true, EmitDefaultValue = true)] + public SignCraftingRequestMultiCaller MultiCaller { get; set; } + + /// + /// The id of this request in the system that originates the crafting request, specified as a 32 byte hex string + /// + /// The id of this request in the system that originates the crafting request, specified as a 32 byte hex string + /// 67f7d464b8f04f6a9a3b8d3cb4a21af0 + [DataMember(Name = "reference_id", IsRequired = true, EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// The calls to be signed + /// + /// The calls to be signed + [DataMember(Name = "calls", IsRequired = true, EmitDefaultValue = true)] + public List Calls { get; set; } + + /// + /// The expiration time of the request + /// + /// The expiration time of the request + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "expires_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime ExpiresAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SignCraftingRequest {\n"); + sb.Append(" MultiCaller: ").Append(MultiCaller).Append("\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" Calls: ").Append(Calls).Append("\n"); + sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SignCraftingRequestMultiCaller.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SignCraftingRequestMultiCaller.cs new file mode 100644 index 00000000..57194b50 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SignCraftingRequestMultiCaller.cs @@ -0,0 +1,117 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// SignCraftingRequestMultiCaller + /// + [DataContract(Name = "SignCraftingRequest_multi_caller")] + public partial class SignCraftingRequestMultiCaller + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SignCraftingRequestMultiCaller() { } + /// + /// Initializes a new instance of the class. + /// + /// An Ethereum address (required). + /// The name of the multicaller contract (required). + /// The version of the multicaller contract (required). + public SignCraftingRequestMultiCaller(string address = default(string), string name = default(string), string varVersion = default(string)) + { + // to ensure "address" is required (not null) + if (address == null) + { + throw new ArgumentNullException("address is a required property for SignCraftingRequestMultiCaller and cannot be null"); + } + this.Address = address; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for SignCraftingRequestMultiCaller and cannot be null"); + } + this.Name = name; + // to ensure "varVersion" is required (not null) + if (varVersion == null) + { + throw new ArgumentNullException("varVersion is a required property for SignCraftingRequestMultiCaller and cannot be null"); + } + this.VarVersion = varVersion; + } + + /// + /// An Ethereum address + /// + /// An Ethereum address + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "address", IsRequired = true, EmitDefaultValue = true)] + public string Address { get; set; } + + /// + /// The name of the multicaller contract + /// + /// The name of the multicaller contract + /// Multicaller + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The version of the multicaller contract + /// + /// The version of the multicaller contract + /// 1 + [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] + public string VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SignCraftingRequestMultiCaller {\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SignCraftingResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SignCraftingResult.cs new file mode 100644 index 00000000..1054db58 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/SignCraftingResult.cs @@ -0,0 +1,101 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// SignCraftingResult + /// + [DataContract(Name = "SignCraftingResult")] + public partial class SignCraftingResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SignCraftingResult() { } + /// + /// Initializes a new instance of the class. + /// + /// An Ethereum address (required). + /// The signature of the request (required). + public SignCraftingResult(string signerAddress = default(string), string signature = default(string)) + { + // to ensure "signerAddress" is required (not null) + if (signerAddress == null) + { + throw new ArgumentNullException("signerAddress is a required property for SignCraftingResult and cannot be null"); + } + this.SignerAddress = signerAddress; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for SignCraftingResult and cannot be null"); + } + this.Signature = signature; + } + + /// + /// An Ethereum address + /// + /// An Ethereum address + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "signer_address", IsRequired = true, EmitDefaultValue = true)] + public string SignerAddress { get; set; } + + /// + /// The signature of the request + /// + /// The signature of the request + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SignCraftingResult {\n"); + sb.Append(" SignerAddress: ").Append(SignerAddress).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Stack.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Stack.cs similarity index 87% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Stack.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Stack.cs index e0802df2..7d536f93 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/Stack.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Stack.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// Stack @@ -42,6 +42,7 @@ protected Stack() { } /// Stack ID (required). /// chain (required). /// Contract address (required). + /// The contract type (required). /// When the metadata was created (required). /// When the metadata was last updated (required). /// The name of the NFT (required). @@ -51,7 +52,7 @@ protected Stack() { } /// The animation url of the NFT (required). /// The youtube URL of NFT (required). /// List of Metadata attributes (required). - public Stack(Guid stackId = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) + public Stack(Guid stackId = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), string contractType = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) { this.StackId = stackId; // to ensure "chain" is required (not null) @@ -66,6 +67,12 @@ protected Stack() { } throw new ArgumentNullException("contractAddress is a required property for Stack and cannot be null"); } this.ContractAddress = contractAddress; + // to ensure "contractType" is required (not null) + if (contractType == null) + { + throw new ArgumentNullException("contractType is a required property for Stack and cannot be null"); + } + this.ContractType = contractType; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; // to ensure "name" is required (not null) @@ -132,6 +139,13 @@ protected Stack() { } [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] public string ContractAddress { get; set; } + /// + /// The contract type + /// + /// The contract type + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public string ContractType { get; set; } + /// /// When the metadata was created /// @@ -214,6 +228,7 @@ public override string ToString() sb.Append(" StackId: ").Append(StackId).Append("\n"); sb.Append(" Chain: ").Append(Chain).Append("\n"); sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackBundle.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/StackBundle.cs similarity index 93% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackBundle.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/StackBundle.cs index 7b58f4a4..ab0a5dd5 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackBundle.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/StackBundle.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// Stack bundle includes stacks, markets and listings diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackQuoteResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/StackQuoteResult.cs similarity index 93% rename from Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackQuoteResult.cs rename to Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/StackQuoteResult.cs index 5b25e391..cbd283df 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/StackQuoteResult.cs +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/StackQuoteResult.cs @@ -1,10 +1,10 @@ /* - * Indexer Search API + * Immutable zkEVM API * - * This API implements endpoints to power data driven marketplace and game experiences + * Immutable Multi Rollup API * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -21,9 +21,9 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; -namespace Immutable.Search.Model +namespace Immutable.Api.Model { /// /// Stack quote result diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Token.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Token.cs new file mode 100644 index 00000000..7bd356d8 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Token.cs @@ -0,0 +1,232 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Token + /// + [DataContract(Name = "Token")] + public partial class Token + { + + /// + /// Gets or Sets VerificationStatus + /// + [DataMember(Name = "verification_status", IsRequired = true, EmitDefaultValue = true)] + public AssetVerificationStatus VerificationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Token() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of token contract (required). + /// The address of root token contract (required). + /// The id of the root chain for a bridged token. + /// The name of the bridge, for bridged tokens only. + /// The symbol of token (required). + /// The decimals of token (required). + /// The image url of token (required). + /// The name of token (required). + /// verificationStatus (required). + /// When the collection was last updated (required). + /// Indicates whether the token is canonical or not (required). + public Token(Chain chain = default(Chain), string contractAddress = default(string), string rootContractAddress = default(string), string rootChainId = default(string), string bridgeUsed = default(string), string symbol = default(string), int? decimals = default(int?), string imageUrl = default(string), string name = default(string), AssetVerificationStatus verificationStatus = default(AssetVerificationStatus), DateTime updatedAt = default(DateTime), bool isCanonical = default(bool)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Token and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for Token and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "rootContractAddress" is required (not null) + if (rootContractAddress == null) + { + throw new ArgumentNullException("rootContractAddress is a required property for Token and cannot be null"); + } + this.RootContractAddress = rootContractAddress; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for Token and cannot be null"); + } + this.Symbol = symbol; + // to ensure "decimals" is required (not null) + if (decimals == null) + { + throw new ArgumentNullException("decimals is a required property for Token and cannot be null"); + } + this.Decimals = decimals; + // to ensure "imageUrl" is required (not null) + if (imageUrl == null) + { + throw new ArgumentNullException("imageUrl is a required property for Token and cannot be null"); + } + this.ImageUrl = imageUrl; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Token and cannot be null"); + } + this.Name = name; + this.VerificationStatus = verificationStatus; + this.UpdatedAt = updatedAt; + this.IsCanonical = isCanonical; + this.RootChainId = rootChainId; + this.BridgeUsed = bridgeUsed; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of token contract + /// + /// The address of token contract + /// 0xc344c05eef8876e517072f879dae8905aa2b956b + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The address of root token contract + /// + /// The address of root token contract + /// 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + [DataMember(Name = "root_contract_address", IsRequired = true, EmitDefaultValue = true)] + public string RootContractAddress { get; set; } + + /// + /// The id of the root chain for a bridged token + /// + /// The id of the root chain for a bridged token + /// eip155:1 + [DataMember(Name = "root_chain_id", EmitDefaultValue = true)] + public string RootChainId { get; set; } + + /// + /// The name of the bridge, for bridged tokens only + /// + /// The name of the bridge, for bridged tokens only + /// axelar + [DataMember(Name = "bridge_used", EmitDefaultValue = true)] + public string BridgeUsed { get; set; } + + /// + /// The symbol of token + /// + /// The symbol of token + /// AAA + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The decimals of token + /// + /// The decimals of token + /// 18 + [DataMember(Name = "decimals", IsRequired = true, EmitDefaultValue = true)] + public int? Decimals { get; set; } + + /// + /// The image url of token + /// + /// The image url of token + /// https://some-url + [DataMember(Name = "image_url", IsRequired = true, EmitDefaultValue = true)] + public string ImageUrl { get; set; } + + /// + /// The name of token + /// + /// The name of token + /// Token A + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// When the collection was last updated + /// + /// When the collection was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Indicates whether the token is canonical or not + /// + /// Indicates whether the token is canonical or not + /// true + [DataMember(Name = "is_canonical", IsRequired = true, EmitDefaultValue = true)] + public bool IsCanonical { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Token {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" RootContractAddress: ").Append(RootContractAddress).Append("\n"); + sb.Append(" RootChainId: ").Append(RootChainId).Append("\n"); + sb.Append(" BridgeUsed: ").Append(BridgeUsed).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" Decimals: ").Append(Decimals).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" VerificationStatus: ").Append(VerificationStatus).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" IsCanonical: ").Append(IsCanonical).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/TokenContractType.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/TokenContractType.cs new file mode 100644 index 00000000..f1d05165 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/TokenContractType.cs @@ -0,0 +1,42 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The contract type for a token + /// + /// The contract type for a token + [JsonConverter(typeof(StringEnumConverter))] + public enum TokenContractType + { + /// + /// Enum ERC20 for value: ERC20 + /// + [EnumMember(Value = "ERC20")] + ERC20 = 1 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Trade.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Trade.cs new file mode 100644 index 00000000..745adcdd --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Trade.cs @@ -0,0 +1,264 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Trade + /// + [DataContract(Name = "Trade")] + public partial class Trade + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Trade() { } + /// + /// Initializes a new instance of the class. + /// + /// Buy items are transferred from the taker to the maker. (required). + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. (required). + /// Deprecated. Use fees instead. The taker always pays the fees. (required). + /// fees (required). + /// chain (required). + /// orderId (required). + /// blockchainMetadata (required). + /// Time the on-chain trade event is indexed by the order book system (required). + /// Global Trade identifier (required). + /// Sell items are transferred from the maker to the taker. (required). + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. (required). + /// makerAddress (required). + /// takerAddress (required). + public Trade(List buy = default(List), string buyerAddress = default(string), List buyerFees = default(List), List fees = default(List), Chain chain = default(Chain), string orderId = default(string), TradeBlockchainMetadata blockchainMetadata = default(TradeBlockchainMetadata), DateTime indexedAt = default(DateTime), string id = default(string), List sell = default(List), string sellerAddress = default(string), string makerAddress = default(string), string takerAddress = default(string)) + { + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for Trade and cannot be null"); + } + this.Buy = buy; + // to ensure "buyerAddress" is required (not null) + if (buyerAddress == null) + { + throw new ArgumentNullException("buyerAddress is a required property for Trade and cannot be null"); + } + this.BuyerAddress = buyerAddress; + // to ensure "buyerFees" is required (not null) + if (buyerFees == null) + { + throw new ArgumentNullException("buyerFees is a required property for Trade and cannot be null"); + } + this.BuyerFees = buyerFees; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for Trade and cannot be null"); + } + this.Fees = fees; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Trade and cannot be null"); + } + this.Chain = chain; + // to ensure "orderId" is required (not null) + if (orderId == null) + { + throw new ArgumentNullException("orderId is a required property for Trade and cannot be null"); + } + this.OrderId = orderId; + // to ensure "blockchainMetadata" is required (not null) + if (blockchainMetadata == null) + { + throw new ArgumentNullException("blockchainMetadata is a required property for Trade and cannot be null"); + } + this.BlockchainMetadata = blockchainMetadata; + this.IndexedAt = indexedAt; + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for Trade and cannot be null"); + } + this.Id = id; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for Trade and cannot be null"); + } + this.Sell = sell; + // to ensure "sellerAddress" is required (not null) + if (sellerAddress == null) + { + throw new ArgumentNullException("sellerAddress is a required property for Trade and cannot be null"); + } + this.SellerAddress = sellerAddress; + // to ensure "makerAddress" is required (not null) + if (makerAddress == null) + { + throw new ArgumentNullException("makerAddress is a required property for Trade and cannot be null"); + } + this.MakerAddress = makerAddress; + // to ensure "takerAddress" is required (not null) + if (takerAddress == null) + { + throw new ArgumentNullException("takerAddress is a required property for Trade and cannot be null"); + } + this.TakerAddress = takerAddress; + } + + /// + /// Buy items are transferred from the taker to the maker. + /// + /// Buy items are transferred from the taker to the maker. + /// [{"type":"NATIVE","amount":"9750000000000000000","contract_address":"0x0165878A594ca255338adfa4d48449f69242Eb8F"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. + /// + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. + /// 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + [DataMember(Name = "buyer_address", IsRequired = true, EmitDefaultValue = true)] + public string BuyerAddress { get; set; } + + /// + /// Deprecated. Use fees instead. The taker always pays the fees. + /// + /// Deprecated. Use fees instead. The taker always pays the fees. + /// [] + [DataMember(Name = "buyer_fees", IsRequired = true, EmitDefaultValue = true)] + public List BuyerFees { get; set; } + + /// + /// Gets or Sets Fees + /// + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Gets or Sets OrderId + /// + /// 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + [DataMember(Name = "order_id", IsRequired = true, EmitDefaultValue = true)] + public string OrderId { get; set; } + + /// + /// Gets or Sets BlockchainMetadata + /// + [DataMember(Name = "blockchain_metadata", IsRequired = true, EmitDefaultValue = true)] + public TradeBlockchainMetadata BlockchainMetadata { get; set; } + + /// + /// Time the on-chain trade event is indexed by the order book system + /// + /// Time the on-chain trade event is indexed by the order book system + /// 2022-03-07T07:20:50.520Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// Global Trade identifier + /// + /// Global Trade identifier + /// 018792C9-4AD7-8EC4-4038-9E05C598534A + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Sell items are transferred from the maker to the taker. + /// + /// Sell items are transferred from the maker to the taker. + /// [{"type":"ERC721","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","token_id":"1"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. + /// + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. + /// 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + [DataMember(Name = "seller_address", IsRequired = true, EmitDefaultValue = true)] + public string SellerAddress { get; set; } + + /// + /// Gets or Sets MakerAddress + /// + /// 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + [DataMember(Name = "maker_address", IsRequired = true, EmitDefaultValue = true)] + public string MakerAddress { get; set; } + + /// + /// Gets or Sets TakerAddress + /// + /// 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + [DataMember(Name = "taker_address", IsRequired = true, EmitDefaultValue = true)] + public string TakerAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Trade {\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" BuyerAddress: ").Append(BuyerAddress).Append("\n"); + sb.Append(" BuyerFees: ").Append(BuyerFees).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" BlockchainMetadata: ").Append(BlockchainMetadata).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" SellerAddress: ").Append(SellerAddress).Append("\n"); + sb.Append(" MakerAddress: ").Append(MakerAddress).Append("\n"); + sb.Append(" TakerAddress: ").Append(TakerAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/TradeBlockchainMetadata.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/TradeBlockchainMetadata.cs new file mode 100644 index 00000000..5dede105 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/TradeBlockchainMetadata.cs @@ -0,0 +1,133 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The metadata related to the transaction in which the activity occurred + /// + [DataContract(Name = "TradeBlockchainMetadata")] + public partial class TradeBlockchainMetadata + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TradeBlockchainMetadata() { } + /// + /// Initializes a new instance of the class. + /// + /// The transaction hash of the trade (required). + /// EVM block number (uint64 as string) (required). + /// Transaction index in a block (uint32 as string) (required). + /// The log index of the fulfillment event in a block (uint32 as string) (required). + public TradeBlockchainMetadata(string transactionHash = default(string), string blockNumber = default(string), string transactionIndex = default(string), string logIndex = default(string)) + { + // to ensure "transactionHash" is required (not null) + if (transactionHash == null) + { + throw new ArgumentNullException("transactionHash is a required property for TradeBlockchainMetadata and cannot be null"); + } + this.TransactionHash = transactionHash; + // to ensure "blockNumber" is required (not null) + if (blockNumber == null) + { + throw new ArgumentNullException("blockNumber is a required property for TradeBlockchainMetadata and cannot be null"); + } + this.BlockNumber = blockNumber; + // to ensure "transactionIndex" is required (not null) + if (transactionIndex == null) + { + throw new ArgumentNullException("transactionIndex is a required property for TradeBlockchainMetadata and cannot be null"); + } + this.TransactionIndex = transactionIndex; + // to ensure "logIndex" is required (not null) + if (logIndex == null) + { + throw new ArgumentNullException("logIndex is a required property for TradeBlockchainMetadata and cannot be null"); + } + this.LogIndex = logIndex; + } + + /// + /// The transaction hash of the trade + /// + /// The transaction hash of the trade + /// 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + [DataMember(Name = "transaction_hash", IsRequired = true, EmitDefaultValue = true)] + public string TransactionHash { get; set; } + + /// + /// EVM block number (uint64 as string) + /// + /// EVM block number (uint64 as string) + /// 1 + [DataMember(Name = "block_number", IsRequired = true, EmitDefaultValue = true)] + public string BlockNumber { get; set; } + + /// + /// Transaction index in a block (uint32 as string) + /// + /// Transaction index in a block (uint32 as string) + /// 1 + [DataMember(Name = "transaction_index", IsRequired = true, EmitDefaultValue = true)] + public string TransactionIndex { get; set; } + + /// + /// The log index of the fulfillment event in a block (uint32 as string) + /// + /// The log index of the fulfillment event in a block (uint32 as string) + /// 1 + [DataMember(Name = "log_index", IsRequired = true, EmitDefaultValue = true)] + public string LogIndex { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TradeBlockchainMetadata {\n"); + sb.Append(" TransactionHash: ").Append(TransactionHash).Append("\n"); + sb.Append(" BlockNumber: ").Append(BlockNumber).Append("\n"); + sb.Append(" TransactionIndex: ").Append(TransactionIndex).Append("\n"); + sb.Append(" LogIndex: ").Append(LogIndex).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/TradeResult.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/TradeResult.cs new file mode 100644 index 00000000..d2794fd7 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/TradeResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// TradeResult + /// + [DataContract(Name = "TradeResult")] + public partial class TradeResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TradeResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public TradeResult(Trade result = default(Trade)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for TradeResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Trade Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TradeResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Transfer.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Transfer.cs new file mode 100644 index 00000000..bb36a2c5 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Transfer.cs @@ -0,0 +1,131 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The transfer activity details + /// + [DataContract(Name = "Transfer")] + public partial class Transfer + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Transfer() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was transferred from (required). + /// The account address the asset was transferred to (required). + /// The amount of assets transferred (required). + /// asset (required). + public Transfer(string from = default(string), string to = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "from" is required (not null) + if (from == null) + { + throw new ArgumentNullException("from is a required property for Transfer and cannot be null"); + } + this.From = from; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for Transfer and cannot be null"); + } + this.To = to; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Transfer and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Transfer and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was transferred from + /// + /// The account address the asset was transferred from + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// The account address the asset was transferred to + /// + /// The account address the asset was transferred to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public string To { get; set; } + + /// + /// The amount of assets transferred + /// + /// The amount of assets transferred + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Transfer {\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/UnfulfillableOrder.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/UnfulfillableOrder.cs new file mode 100644 index 00000000..01cf9bad --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/UnfulfillableOrder.cs @@ -0,0 +1,112 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// UnfulfillableOrder + /// + [DataContract(Name = "UnfulfillableOrder")] + public partial class UnfulfillableOrder + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnfulfillableOrder() { } + /// + /// Initializes a new instance of the class. + /// + /// OrderID for the requested but unfulfillable order (required). + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order. + /// Nullable string containing error reason if the signing is unsuccessful for the order (required). + public UnfulfillableOrder(string orderId = default(string), string tokenId = default(string), string reason = default(string)) + { + // to ensure "orderId" is required (not null) + if (orderId == null) + { + throw new ArgumentNullException("orderId is a required property for UnfulfillableOrder and cannot be null"); + } + this.OrderId = orderId; + // to ensure "reason" is required (not null) + if (reason == null) + { + throw new ArgumentNullException("reason is a required property for UnfulfillableOrder and cannot be null"); + } + this.Reason = reason; + this.TokenId = tokenId; + } + + /// + /// OrderID for the requested but unfulfillable order + /// + /// OrderID for the requested but unfulfillable order + /// 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + [DataMember(Name = "order_id", IsRequired = true, EmitDefaultValue = true)] + public string OrderId { get; set; } + + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// 123 + [DataMember(Name = "token_id", EmitDefaultValue = false)] + public string TokenId { get; set; } + + /// + /// Nullable string containing error reason if the signing is unsuccessful for the order + /// + /// Nullable string containing error reason if the signing is unsuccessful for the order + /// Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + [DataMember(Name = "reason", IsRequired = true, EmitDefaultValue = true)] + public string Reason { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnfulfillableOrder {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/UserInfo.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/UserInfo.cs new file mode 100644 index 00000000..7de28f14 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/UserInfo.cs @@ -0,0 +1,119 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// UserInfo + /// + [DataContract(Name = "UserInfo")] + public partial class UserInfo + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UserInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// The user's id (required). + /// The user's email address. + /// The user's Passport address if it has been registered. + /// The user's list of linked addresses (required). + public UserInfo(string sub = default(string), string email = default(string), string passportAddress = default(string), List linkedAddresses = default(List)) + { + // to ensure "sub" is required (not null) + if (sub == null) + { + throw new ArgumentNullException("sub is a required property for UserInfo and cannot be null"); + } + this.Sub = sub; + // to ensure "linkedAddresses" is required (not null) + if (linkedAddresses == null) + { + throw new ArgumentNullException("linkedAddresses is a required property for UserInfo and cannot be null"); + } + this.LinkedAddresses = linkedAddresses; + this.Email = email; + this.PassportAddress = passportAddress; + } + + /// + /// The user's id + /// + /// The user's id + [DataMember(Name = "sub", IsRequired = true, EmitDefaultValue = true)] + public string Sub { get; set; } + + /// + /// The user's email address + /// + /// The user's email address + [DataMember(Name = "email", EmitDefaultValue = false)] + public string Email { get; set; } + + /// + /// The user's Passport address if it has been registered + /// + /// The user's Passport address if it has been registered + [DataMember(Name = "passport_address", EmitDefaultValue = false)] + public string PassportAddress { get; set; } + + /// + /// The user's list of linked addresses + /// + /// The user's list of linked addresses + [DataMember(Name = "linked_addresses", IsRequired = true, EmitDefaultValue = true)] + public List LinkedAddresses { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UserInfo {\n"); + sb.Append(" Sub: ").Append(Sub).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" PassportAddress: ").Append(PassportAddress).Append("\n"); + sb.Append(" LinkedAddresses: ").Append(LinkedAddresses).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequest.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequest.cs new file mode 100644 index 00000000..d5555d49 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequest.cs @@ -0,0 +1,224 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The verification request + /// + [DataContract(Name = "VerificationRequest")] + public partial class VerificationRequest + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public VerificationRequestContractType ContractType { get; set; } + + /// + /// Gets or Sets VerificationRequestStatus + /// + [DataMember(Name = "verification_request_status", IsRequired = true, EmitDefaultValue = true)] + public VerificationRequestStatus VerificationRequestStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected VerificationRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of the verification request (required). + /// chain (required). + /// The contract address (required). + /// The name of the organisation associated with this contract (required). + /// The name of the collection (required). + /// The symbol of contract (required). + /// The description of collection (required). + /// The id of the organisation associated with this contract (required). + /// The email address of the user who requested the contract to be verified (required). + /// contractType (required). + /// verificationRequestStatus (required). + public VerificationRequest(Guid id = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), string orgName = default(string), string name = default(string), string symbol = default(string), string description = default(string), string orgId = default(string), string requesterEmail = default(string), VerificationRequestContractType contractType = default(VerificationRequestContractType), VerificationRequestStatus verificationRequestStatus = default(VerificationRequestStatus)) + { + this.Id = id; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for VerificationRequest and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for VerificationRequest and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "orgName" is required (not null) + if (orgName == null) + { + throw new ArgumentNullException("orgName is a required property for VerificationRequest and cannot be null"); + } + this.OrgName = orgName; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for VerificationRequest and cannot be null"); + } + this.Name = name; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for VerificationRequest and cannot be null"); + } + this.Symbol = symbol; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for VerificationRequest and cannot be null"); + } + this.Description = description; + // to ensure "orgId" is required (not null) + if (orgId == null) + { + throw new ArgumentNullException("orgId is a required property for VerificationRequest and cannot be null"); + } + this.OrgId = orgId; + // to ensure "requesterEmail" is required (not null) + if (requesterEmail == null) + { + throw new ArgumentNullException("requesterEmail is a required property for VerificationRequest and cannot be null"); + } + this.RequesterEmail = requesterEmail; + this.ContractType = contractType; + this.VerificationRequestStatus = verificationRequestStatus; + } + + /// + /// The id of the verification request + /// + /// The id of the verification request + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The contract address + /// + /// The contract address + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The name of the organisation associated with this contract + /// + /// The name of the organisation associated with this contract + /// Immutable + [DataMember(Name = "org_name", IsRequired = true, EmitDefaultValue = true)] + public string OrgName { get; set; } + + /// + /// The name of the collection + /// + /// The name of the collection + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The symbol of contract + /// + /// The symbol of contract + /// BASP + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The description of collection + /// + /// The description of collection + /// Some description + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The id of the organisation associated with this contract + /// + /// The id of the organisation associated with this contract + /// 753da67a-5d3b-42c7-b87a-eba3d17a6362 + [DataMember(Name = "org_id", IsRequired = true, EmitDefaultValue = true)] + public string OrgId { get; set; } + + /// + /// The email address of the user who requested the contract to be verified + /// + /// The email address of the user who requested the contract to be verified + /// user@immutable.com + [DataMember(Name = "requester_email", IsRequired = true, EmitDefaultValue = true)] + public string RequesterEmail { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class VerificationRequest {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" OrgName: ").Append(OrgName).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" RequesterEmail: ").Append(RequesterEmail).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" VerificationRequestStatus: ").Append(VerificationRequestStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequestContractType.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequestContractType.cs new file mode 100644 index 00000000..03a57e43 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequestContractType.cs @@ -0,0 +1,54 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The contract type associated with the given request + /// + /// The contract type associated with the given request + [JsonConverter(typeof(StringEnumConverter))] + public enum VerificationRequestContractType + { + /// + /// Enum ERC20 for value: ERC20 + /// + [EnumMember(Value = "ERC20")] + ERC20 = 1, + + /// + /// Enum ERC721 for value: ERC721 + /// + [EnumMember(Value = "ERC721")] + ERC721 = 2, + + /// + /// Enum ERC1155 for value: ERC1155 + /// + [EnumMember(Value = "ERC1155")] + ERC1155 = 3 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequestInternal.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequestInternal.cs new file mode 100644 index 00000000..55a2715b --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequestInternal.cs @@ -0,0 +1,233 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The verification request (internal) + /// + [DataContract(Name = "VerificationRequestInternal")] + public partial class VerificationRequestInternal + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public VerificationRequestContractType ContractType { get; set; } + + /// + /// Gets or Sets VerificationRequestStatus + /// + [DataMember(Name = "verification_request_status", IsRequired = true, EmitDefaultValue = true)] + public VerificationRequestStatus VerificationRequestStatus { get; set; } + + /// + /// Gets or Sets OrgTier + /// + [DataMember(Name = "org_tier", IsRequired = true, EmitDefaultValue = true)] + public OrganisationTier OrgTier { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected VerificationRequestInternal() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of the verification request (required). + /// chain (required). + /// The contract address (required). + /// The name of the organisation associated with this contract (required). + /// The name of the collection (required). + /// The symbol of contract (required). + /// The description of collection (required). + /// The id of the organisation associated with this contract (required). + /// The email address of the user who requested the contract to be verified (required). + /// contractType (required). + /// verificationRequestStatus (required). + /// orgTier (required). + public VerificationRequestInternal(Guid id = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), string orgName = default(string), string name = default(string), string symbol = default(string), string description = default(string), string orgId = default(string), string requesterEmail = default(string), VerificationRequestContractType contractType = default(VerificationRequestContractType), VerificationRequestStatus verificationRequestStatus = default(VerificationRequestStatus), OrganisationTier orgTier = default(OrganisationTier)) + { + this.Id = id; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for VerificationRequestInternal and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for VerificationRequestInternal and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "orgName" is required (not null) + if (orgName == null) + { + throw new ArgumentNullException("orgName is a required property for VerificationRequestInternal and cannot be null"); + } + this.OrgName = orgName; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for VerificationRequestInternal and cannot be null"); + } + this.Name = name; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for VerificationRequestInternal and cannot be null"); + } + this.Symbol = symbol; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for VerificationRequestInternal and cannot be null"); + } + this.Description = description; + // to ensure "orgId" is required (not null) + if (orgId == null) + { + throw new ArgumentNullException("orgId is a required property for VerificationRequestInternal and cannot be null"); + } + this.OrgId = orgId; + // to ensure "requesterEmail" is required (not null) + if (requesterEmail == null) + { + throw new ArgumentNullException("requesterEmail is a required property for VerificationRequestInternal and cannot be null"); + } + this.RequesterEmail = requesterEmail; + this.ContractType = contractType; + this.VerificationRequestStatus = verificationRequestStatus; + this.OrgTier = orgTier; + } + + /// + /// The id of the verification request + /// + /// The id of the verification request + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The contract address + /// + /// The contract address + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The name of the organisation associated with this contract + /// + /// The name of the organisation associated with this contract + /// Immutable + [DataMember(Name = "org_name", IsRequired = true, EmitDefaultValue = true)] + public string OrgName { get; set; } + + /// + /// The name of the collection + /// + /// The name of the collection + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The symbol of contract + /// + /// The symbol of contract + /// BASP + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The description of collection + /// + /// The description of collection + /// Some description + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The id of the organisation associated with this contract + /// + /// The id of the organisation associated with this contract + /// 753da67a-5d3b-42c7-b87a-eba3d17a6362 + [DataMember(Name = "org_id", IsRequired = true, EmitDefaultValue = true)] + public string OrgId { get; set; } + + /// + /// The email address of the user who requested the contract to be verified + /// + /// The email address of the user who requested the contract to be verified + /// user@immutable.com + [DataMember(Name = "requester_email", IsRequired = true, EmitDefaultValue = true)] + public string RequesterEmail { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class VerificationRequestInternal {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" OrgName: ").Append(OrgName).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" RequesterEmail: ").Append(RequesterEmail).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" VerificationRequestStatus: ").Append(VerificationRequestStatus).Append("\n"); + sb.Append(" OrgTier: ").Append(OrgTier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequestStatus.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequestStatus.cs new file mode 100644 index 00000000..a9655df5 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/VerificationRequestStatus.cs @@ -0,0 +1,48 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The status of the verification request + /// + /// The status of the verification request + [JsonConverter(typeof(StringEnumConverter))] + public enum VerificationRequestStatus + { + /// + /// Enum Completed for value: completed + /// + [EnumMember(Value = "completed")] + Completed = 1, + + /// + /// Enum Pending for value: pending + /// + [EnumMember(Value = "pending")] + Pending = 2 + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Wallet.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Wallet.cs new file mode 100644 index 00000000..6cab8d8a --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Wallet.cs @@ -0,0 +1,150 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// Linked wallet + /// + [DataContract(Name = "Wallet")] + public partial class Wallet + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Wallet() { } + /// + /// Initializes a new instance of the class. + /// + /// Ethereum address (required). + /// Wallet type (required). + /// Created at (required). + /// Created at (required). + /// Name. + /// Name of client that linked the wallet (required). + public Wallet(string address = default(string), string type = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), string clientName = default(string)) + { + // to ensure "address" is required (not null) + if (address == null) + { + throw new ArgumentNullException("address is a required property for Wallet and cannot be null"); + } + this.Address = address; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for Wallet and cannot be null"); + } + this.Type = type; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + // to ensure "clientName" is required (not null) + if (clientName == null) + { + throw new ArgumentNullException("clientName is a required property for Wallet and cannot be null"); + } + this.ClientName = clientName; + this.Name = name; + } + + /// + /// Ethereum address + /// + /// Ethereum address + /// 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + [DataMember(Name = "address", IsRequired = true, EmitDefaultValue = true)] + public string Address { get; set; } + + /// + /// Wallet type + /// + /// Wallet type + /// MetaMask + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Created at + /// + /// Created at + /// 2021-08-31T00:00Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Created at + /// + /// Created at + /// 2021-08-31T00:00Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Name + /// + /// Name + /// Test + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Name of client that linked the wallet + /// + /// Name of client that linked the wallet + /// Passport Dashboard + [DataMember(Name = "clientName", IsRequired = true, EmitDefaultValue = true)] + public string ClientName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Wallet {\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ClientName: ").Append(ClientName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Withdrawal.cs b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Withdrawal.cs new file mode 100644 index 00000000..8c2d1014 --- /dev/null +++ b/Assets/Shared/Scripts/Data/API/ImmutableApi/src/Immutable.Api/Model/Withdrawal.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.Client.OpenAPIDateConverter; + +namespace Immutable.Api.Model +{ + /// + /// The withdrawal activity details + /// + [DataContract(Name = "Withdrawal")] + public partial class Withdrawal + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Withdrawal() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was withdrawn from (required). + /// The amount of assets withdrawn (required). + /// asset (required). + public Withdrawal(string from = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "from" is required (not null) + if (from == null) + { + throw new ArgumentNullException("from is a required property for Withdrawal and cannot be null"); + } + this.From = from; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Withdrawal and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Withdrawal and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was withdrawn from + /// + /// The account address the asset was withdrawn from + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// The amount of assets withdrawn + /// + /// The amount of assets withdrawn + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Withdrawal {\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/Assets/Shared/Scripts/Data/API/Search/.openapi-generator/FILES b/Assets/Shared/Scripts/Data/API/Search/.openapi-generator/FILES deleted file mode 100644 index 90f2d78b..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/.openapi-generator/FILES +++ /dev/null @@ -1,136 +0,0 @@ -.gitignore -.openapi-generator-ignore -README.md -api/openapi.yaml -docs/APIError400.md -docs/APIError400AllOf.md -docs/APIError401.md -docs/APIError401AllOf.md -docs/APIError403.md -docs/APIError403AllOf.md -docs/APIError404.md -docs/APIError404AllOf.md -docs/APIError409.md -docs/APIError409AllOf.md -docs/APIError429.md -docs/APIError429AllOf.md -docs/APIError500.md -docs/APIError500AllOf.md -docs/BackfillRequest.md -docs/BasicAPIError.md -docs/Chain.md -docs/ERC20Token.md -docs/Fee.md -docs/LastTrade.md -docs/Listing.md -docs/Market.md -docs/NFTMetadataAttribute.md -docs/NFTMetadataAttributeValue.md -docs/NFTQuoteResult.md -docs/NativeToken.md -docs/Page.md -docs/PaymentAmount.md -docs/PriceDetails.md -docs/PriceDetailsToken.md -docs/QuotesForNFTsResult.md -docs/QuotesForStacksResult.md -docs/SearchApi.md -docs/SearchStacksResult.md -docs/Stack.md -docs/StackBundle.md -docs/StackQuoteResult.md -git_push.sh -src/Immutable.Search.Test/Api/SearchApiTests.cs -src/Immutable.Search.Test/Immutable.Search.Test.asmdef -src/Immutable.Search.Test/Model/APIError400AllOfTests.cs -src/Immutable.Search.Test/Model/APIError400Tests.cs -src/Immutable.Search.Test/Model/APIError401AllOfTests.cs -src/Immutable.Search.Test/Model/APIError401Tests.cs -src/Immutable.Search.Test/Model/APIError403AllOfTests.cs -src/Immutable.Search.Test/Model/APIError403Tests.cs -src/Immutable.Search.Test/Model/APIError404AllOfTests.cs -src/Immutable.Search.Test/Model/APIError404Tests.cs -src/Immutable.Search.Test/Model/APIError409AllOfTests.cs -src/Immutable.Search.Test/Model/APIError409Tests.cs -src/Immutable.Search.Test/Model/APIError429AllOfTests.cs -src/Immutable.Search.Test/Model/APIError429Tests.cs -src/Immutable.Search.Test/Model/APIError500AllOfTests.cs -src/Immutable.Search.Test/Model/APIError500Tests.cs -src/Immutable.Search.Test/Model/BackfillRequestTests.cs -src/Immutable.Search.Test/Model/BasicAPIErrorTests.cs -src/Immutable.Search.Test/Model/ChainTests.cs -src/Immutable.Search.Test/Model/ERC20TokenTests.cs -src/Immutable.Search.Test/Model/FeeTests.cs -src/Immutable.Search.Test/Model/LastTradeTests.cs -src/Immutable.Search.Test/Model/ListingTests.cs -src/Immutable.Search.Test/Model/MarketTests.cs -src/Immutable.Search.Test/Model/NFTMetadataAttributeTests.cs -src/Immutable.Search.Test/Model/NFTMetadataAttributeValueTests.cs -src/Immutable.Search.Test/Model/NFTQuoteResultTests.cs -src/Immutable.Search.Test/Model/NativeTokenTests.cs -src/Immutable.Search.Test/Model/PageTests.cs -src/Immutable.Search.Test/Model/PaymentAmountTests.cs -src/Immutable.Search.Test/Model/PriceDetailsTests.cs -src/Immutable.Search.Test/Model/PriceDetailsTokenTests.cs -src/Immutable.Search.Test/Model/QuotesForNFTsResultTests.cs -src/Immutable.Search.Test/Model/QuotesForStacksResultTests.cs -src/Immutable.Search.Test/Model/SearchStacksResultTests.cs -src/Immutable.Search.Test/Model/StackBundleTests.cs -src/Immutable.Search.Test/Model/StackQuoteResultTests.cs -src/Immutable.Search.Test/Model/StackTests.cs -src/Immutable.Search/Api/SearchApi.cs -src/Immutable.Search/Client/ApiClient.cs -src/Immutable.Search/Client/ApiException.cs -src/Immutable.Search/Client/ApiResponse.cs -src/Immutable.Search/Client/ClientUtils.cs -src/Immutable.Search/Client/Configuration.cs -src/Immutable.Search/Client/ConnectionException.cs -src/Immutable.Search/Client/ExceptionFactory.cs -src/Immutable.Search/Client/GlobalConfiguration.cs -src/Immutable.Search/Client/IApiAccessor.cs -src/Immutable.Search/Client/IAsynchronousClient.cs -src/Immutable.Search/Client/IReadableConfiguration.cs -src/Immutable.Search/Client/ISynchronousClient.cs -src/Immutable.Search/Client/Multimap.cs -src/Immutable.Search/Client/OpenAPIDateConverter.cs -src/Immutable.Search/Client/RequestOptions.cs -src/Immutable.Search/Client/UnexpectedResponseException.cs -src/Immutable.Search/Client/WebRequestPathBuilder.cs -src/Immutable.Search/Immutable.Search.asmdef -src/Immutable.Search/Model/APIError400.cs -src/Immutable.Search/Model/APIError400AllOf.cs -src/Immutable.Search/Model/APIError401.cs -src/Immutable.Search/Model/APIError401AllOf.cs -src/Immutable.Search/Model/APIError403.cs -src/Immutable.Search/Model/APIError403AllOf.cs -src/Immutable.Search/Model/APIError404.cs -src/Immutable.Search/Model/APIError404AllOf.cs -src/Immutable.Search/Model/APIError409.cs -src/Immutable.Search/Model/APIError409AllOf.cs -src/Immutable.Search/Model/APIError429.cs -src/Immutable.Search/Model/APIError429AllOf.cs -src/Immutable.Search/Model/APIError500.cs -src/Immutable.Search/Model/APIError500AllOf.cs -src/Immutable.Search/Model/AbstractOpenAPISchema.cs -src/Immutable.Search/Model/BackfillRequest.cs -src/Immutable.Search/Model/BasicAPIError.cs -src/Immutable.Search/Model/Chain.cs -src/Immutable.Search/Model/ERC20Token.cs -src/Immutable.Search/Model/Fee.cs -src/Immutable.Search/Model/LastTrade.cs -src/Immutable.Search/Model/Listing.cs -src/Immutable.Search/Model/Market.cs -src/Immutable.Search/Model/NFTMetadataAttribute.cs -src/Immutable.Search/Model/NFTMetadataAttributeValue.cs -src/Immutable.Search/Model/NFTQuoteResult.cs -src/Immutable.Search/Model/NativeToken.cs -src/Immutable.Search/Model/Page.cs -src/Immutable.Search/Model/PaymentAmount.cs -src/Immutable.Search/Model/PriceDetails.cs -src/Immutable.Search/Model/PriceDetailsToken.cs -src/Immutable.Search/Model/QuotesForNFTsResult.cs -src/Immutable.Search/Model/QuotesForStacksResult.cs -src/Immutable.Search/Model/SearchStacksResult.cs -src/Immutable.Search/Model/Stack.cs -src/Immutable.Search/Model/StackBundle.cs -src/Immutable.Search/Model/StackQuoteResult.cs diff --git a/Assets/Shared/Scripts/Data/API/Search/README.md b/Assets/Shared/Scripts/Data/API/Search/README.md deleted file mode 100644 index e4c87971..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/README.md +++ /dev/null @@ -1,152 +0,0 @@ -# Immutable.Search - the C# library for the Indexer Search API - -This API implements endpoints to power data driven marketplace and game experiences - -This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.0 -- SDK version: 1.0.0 -- Generator version: 7.8.0 -- Build package: org.openapitools.codegen.languages.CSharpClientCodegen - For more information, please visit [https://support.immutable.com](https://support.immutable.com) - - -## Version support -This generator should support all current LTS versions of Unity -- Unity 2020.3 (LTS) and up -- .NET Standard 2.1 / .NET Framework - - -## Dependencies - -- [Newtonsoft.Json](https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@3.0/manual/index.html) - 3.0.2 or later -- [Unity Test Framework](https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/index.html) - 1.1.33 or later - - -## Installation -Add the dependencies to `Packages/manifest.json` -``` -{ - "dependencies": { - ... - "com.unity.nuget.newtonsoft-json": "3.0.2", - "com.unity.test-framework": "1.1.33", - } -} -``` - -Then use the namespaces: -```csharp -using Immutable.Search.Api; -using Immutable.Search.Client; -using Immutable.Search.Model; -``` - - -## Getting Started - -```csharp -using System; -using System.Collections.Generic; -using UnityEngine; -using Immutable.Search.Api; -using Immutable.Search.Client; -using Immutable.Search.Model; - -namespace Immutable.SearchExample -{ - - public class BackfillExample : MonoBehaviour - { - async void Start() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new SearchApi(config); - var chainName = imtbl-zkevm-testnet; // string | The name of chain - var backfillRequest = new BackfillRequest(); // BackfillRequest | - - try - { - // Backfills or re-indexes a given entity - await apiInstance.BackfillAsync(chainName, backfillRequest); - Debug.Log("Done!"); - } - catch (ApiException e) - { - Debug.LogError("Exception when calling SearchApi.Backfill: " + e.Message ); - Debug.LogError("Status Code: "+ e.ErrorCode); - Debug.LogError(e.StackTrace); - } - - } - } -} -``` - - -## Documentation for API Endpoints - -All URIs are relative to *https://api.immutable.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*SearchApi* | [**Backfill**](SearchApi.md#backfill) | **POST** /v1/internal/chains/{chain_name}/backfill | Backfills or re-indexes a given entity -*SearchApi* | [**QuotesForNFTs**](SearchApi.md#quotesfornfts) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/nfts | Get pricing data for a list of token ids -*SearchApi* | [**QuotesForStacks**](SearchApi.md#quotesforstacks) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/stacks | Get pricing data for a list of stack ids -*SearchApi* | [**SearchStacks**](SearchApi.md#searchstacks) | **GET** /experimental/chains/{chain_name}/search/stacks | Search NFT stacks - - - -## Documentation for Models - - - [Model.APIError400](APIError400.md) - - [Model.APIError400AllOf](APIError400AllOf.md) - - [Model.APIError401](APIError401.md) - - [Model.APIError401AllOf](APIError401AllOf.md) - - [Model.APIError403](APIError403.md) - - [Model.APIError403AllOf](APIError403AllOf.md) - - [Model.APIError404](APIError404.md) - - [Model.APIError404AllOf](APIError404AllOf.md) - - [Model.APIError409](APIError409.md) - - [Model.APIError409AllOf](APIError409AllOf.md) - - [Model.APIError429](APIError429.md) - - [Model.APIError429AllOf](APIError429AllOf.md) - - [Model.APIError500](APIError500.md) - - [Model.APIError500AllOf](APIError500AllOf.md) - - [Model.BackfillRequest](BackfillRequest.md) - - [Model.BasicAPIError](BasicAPIError.md) - - [Model.Chain](Chain.md) - - [Model.ERC20Token](ERC20Token.md) - - [Model.Fee](Fee.md) - - [Model.LastTrade](LastTrade.md) - - [Model.Listing](Listing.md) - - [Model.Market](Market.md) - - [Model.NFTMetadataAttribute](NFTMetadataAttribute.md) - - [Model.NFTMetadataAttributeValue](NFTMetadataAttributeValue.md) - - [Model.NFTQuoteResult](NFTQuoteResult.md) - - [Model.NativeToken](NativeToken.md) - - [Model.Page](Page.md) - - [Model.PaymentAmount](PaymentAmount.md) - - [Model.PriceDetails](PriceDetails.md) - - [Model.PriceDetailsToken](PriceDetailsToken.md) - - [Model.QuotesForNFTsResult](QuotesForNFTsResult.md) - - [Model.QuotesForStacksResult](QuotesForStacksResult.md) - - [Model.SearchStacksResult](SearchStacksResult.md) - - [Model.Stack](Stack.md) - - [Model.StackBundle](StackBundle.md) - - [Model.StackQuoteResult](StackQuoteResult.md) - - - -## Documentation for Authorization - - -Authentication schemes defined for the API: - -### ImmutableApiKey - -- **Type**: API key -- **API key parameter name**: x-immutable-api-key -- **Location**: HTTP header - diff --git a/Assets/Shared/Scripts/Data/API/Search/api/openapi.yaml b/Assets/Shared/Scripts/Data/API/Search/api/openapi.yaml deleted file mode 100644 index c6c5d06d..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/api/openapi.yaml +++ /dev/null @@ -1,2028 +0,0 @@ -openapi: 3.0.1 -info: - contact: - email: helpmebuild@immutable.com - name: API Support - url: https://support.immutable.com - description: This API implements endpoints to power data driven marketplace and - game experiences - title: Indexer Search API - version: "1.0" -servers: -- description: Production - url: https://api.immutable.com -- description: Sandbox - url: https://api.sandbox.immutable.com -- description: Development - url: https://api.dev.immutable.com -tags: -- description: search tag - name: search -paths: - /experimental/chains/{chain_name}/search/stacks: - get: - description: Search NFT stacks - operationId: SearchStacks - parameters: - - description: The name of chain - examples: - testnet: - summary: Immutable zkEVM Public Testnet - value: imtbl-zkevm-testnet - explode: false - in: path - name: chain_name - required: true - schema: - $ref: '#/components/schemas/ChainName' - style: simple - - description: List of contract addresses to filter by - explode: true - in: query - name: contract_address - required: true - schema: - items: - example: "1334120697966828340666039427861105342297873844179" - pattern: "^0x[a-fA-F0-9]{40}$" - type: string - maxItems: 20 - minItems: 1 - type: array - style: form - - description: Account address to filter by - explode: true - in: query - name: account_address - required: false - schema: - example: "1334120697966828340666039427861105342297873844179" - pattern: "^0x[a-fA-F0-9]{40}$" - type: string - style: form - - description: Whether to the listings should include only the owner created - listings - explode: true - in: query - name: only_include_owner_listings - required: false - schema: - example: true - type: boolean - style: form - - description: "JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"\ - rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}}))" - explode: true - in: query - name: trait - required: false - schema: - type: string - style: form - - description: Keyword to search NFT name and description. Alphanumeric characters - only. - explode: true - in: query - name: keyword - required: false - schema: - example: sword - type: string - style: form - - description: Number of results to return per page - explode: true - in: query - name: page_size - required: false - schema: - $ref: '#/components/schemas/PageSize' - style: form - - description: Encoded page cursor to retrieve previous or next page. Use the - value returned in the response. - explode: true - in: query - name: page_cursor - required: false - schema: - $ref: '#/components/schemas/PageCursor' - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/SearchStacksResult' - description: 200 response - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError400' - description: Bad Request (400) - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError401' - description: Unauthorised Request (401) - "403": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError403' - description: Forbidden Request (403) - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError404' - description: The specified resource was not found (404) - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError500' - description: Internal Server Error (500) - summary: Search NFT stacks - tags: - - search - x-internal: false - x-hide-from-sdk: true - /experimental/chains/{chain_name}/quotes/{contract_address}/stacks: - get: - description: Get pricing data for a list of stack ids - operationId: QuotesForStacks - parameters: - - description: The name of chain - examples: - testnet: - summary: Immutable zkEVM Public Testnet - value: imtbl-zkevm-testnet - explode: false - in: path - name: chain_name - required: true - schema: - $ref: '#/components/schemas/ChainName' - style: simple - - description: Contract address for collection that these stacks are on - explode: false - in: path - name: contract_address - required: true - schema: - pattern: "^0x[a-fA-F0-9]{40}$" - type: string - style: simple - - description: List of stack ids to get pricing data for - explode: true - in: query - name: stack_id - required: true - schema: - items: - example: 7053e765-c119-4efb-b5cf-405ccccaf6c4 - format: uuid - type: string - maxItems: 20 - minItems: 1 - type: array - style: form - - description: Encoded page cursor to retrieve previous or next page. Use the - value returned in the response. - explode: true - in: query - name: page_cursor - required: false - schema: - $ref: '#/components/schemas/PageCursor' - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/QuotesForStacksResult' - description: 200 response - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError400' - description: Bad Request (400) - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError401' - description: Unauthorised Request (401) - "403": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError403' - description: Forbidden Request (403) - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError404' - description: The specified resource was not found (404) - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError500' - description: Internal Server Error (500) - summary: Get pricing data for a list of stack ids - tags: - - search - x-internal: false - x-hide-from-sdk: true - /experimental/chains/{chain_name}/quotes/{contract_address}/nfts: - get: - description: Get pricing data for a list of token ids - operationId: QuotesForNFTs - parameters: - - description: The name of chain - examples: - testnet: - summary: Immutable zkEVM Public Testnet - value: imtbl-zkevm-testnet - explode: false - in: path - name: chain_name - required: true - schema: - $ref: '#/components/schemas/ChainName' - style: simple - - description: Contract address for collection that these token ids are on - explode: false - in: path - name: contract_address - required: true - schema: - pattern: "^0x[a-fA-F0-9]{40}$" - type: string - style: simple - - description: List of token ids to get pricing data for - explode: true - in: query - name: token_id - required: true - schema: - items: - example: "1337" - type: string - maxItems: 20 - minItems: 1 - type: array - style: form - - description: Encoded page cursor to retrieve previous or next page. Use the - value returned in the response. - explode: true - in: query - name: page_cursor - required: false - schema: - $ref: '#/components/schemas/PageCursor' - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/QuotesForNFTsResult' - description: 200 response - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError400' - description: Bad Request (400) - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError401' - description: Unauthorised Request (401) - "403": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError403' - description: Forbidden Request (403) - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError404' - description: The specified resource was not found (404) - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError500' - description: Internal Server Error (500) - summary: Get pricing data for a list of token ids - tags: - - search - x-internal: false - x-hide-from-sdk: true - /v1/internal/chains/{chain_name}/backfill: - post: - description: Backfills or re-indexes a given entity - operationId: Backfill - parameters: - - description: The name of chain - examples: - testnet: - summary: Immutable zkEVM Public Testnet - value: imtbl-zkevm-testnet - explode: false - in: path - name: chain_name - required: true - schema: - $ref: '#/components/schemas/ChainName' - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/BackfillRequest' - required: true - responses: - "202": - description: Accepted - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError400' - description: Bad Request (400) - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError404' - description: The specified resource was not found (404) - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/APIError500' - description: Internal Server Error (500) - summary: Backfills or re-indexes a given entity - tags: - - search - x-internal: false - x-hide-from-sdk: true -components: - responses: - NotFound: - content: - application/json: - schema: - $ref: '#/components/schemas/APIError404' - description: The specified resource was not found (404) - BadRequest: - content: - application/json: - schema: - $ref: '#/components/schemas/APIError400' - description: Bad Request (400) - UnauthorisedRequest: - content: - application/json: - schema: - $ref: '#/components/schemas/APIError401' - description: Unauthorised Request (401) - ForbiddenRequest: - content: - application/json: - schema: - $ref: '#/components/schemas/APIError403' - description: Forbidden Request (403) - Conflict: - content: - application/json: - schema: - $ref: '#/components/schemas/APIError409' - description: Conflict (409) - TooManyRequests: - content: - application/json: - schema: - $ref: '#/components/schemas/APIError429' - description: Too Many Requests (429) - InternalServerError: - content: - application/json: - schema: - $ref: '#/components/schemas/APIError500' - description: Internal Server Error (500) - schemas: - Chain: - description: The chain details - example: - name: imtbl-zkevm-testnet - id: eip155:13372 - properties: - id: - description: The id of chain - example: eip155:13372 - type: string - name: - description: The name of chain - example: imtbl-zkevm-testnet - type: string - required: - - id - - name - type: object - ChainName: - description: The name of chain - example: imtbl-zkevm-testnet - type: string - PageCursor: - description: Encoded page cursor to retrieve previous or next page. Use the - value returned in the response. - example: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - type: string - Page: - description: Pagination properties - example: - previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - properties: - previous_cursor: - description: First item as an encoded string - example: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - nullable: true - type: string - next_cursor: - description: Last item as an encoded string - example: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - nullable: true - type: string - required: - - next_cursor - - previous_cursor - type: object - PageSize: - default: 100 - description: Maximum number of items to return - example: 10 - format: int32 - maximum: 200 - minimum: 1 - type: integer - SearchStacksResult: - description: Search stacks result - example: - result: - - market: "" - listings: - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - stack: - image: https://some-url - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - external_url: https://some-url - animation_url: https://some-url - updated_at: 2022-08-16T17:43:26.991388Z - stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - name: Sword - created_at: 2022-08-16T17:43:26.991388Z - description: 2022-08-16T17:43:26.991388Z - attributes: - - display_type: number - value: Happy - trait_type: Aqua Power - - display_type: number - value: Happy - trait_type: Aqua Power - contract_address: contract_address - youtube_url: https://some-url - stack_count: 1 - - market: "" - listings: - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - stack: - image: https://some-url - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - external_url: https://some-url - animation_url: https://some-url - updated_at: 2022-08-16T17:43:26.991388Z - stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - name: Sword - created_at: 2022-08-16T17:43:26.991388Z - description: 2022-08-16T17:43:26.991388Z - attributes: - - display_type: number - value: Happy - trait_type: Aqua Power - - display_type: number - value: Happy - trait_type: Aqua Power - contract_address: contract_address - youtube_url: https://some-url - stack_count: 1 - page: - previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - properties: - result: - description: List of stack bundles - items: - $ref: '#/components/schemas/StackBundle' - type: array - page: - $ref: '#/components/schemas/Page' - required: - - page - - result - type: object - StackBundle: - description: "Stack bundle includes stacks, markets and listings" - example: - market: "" - listings: - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - stack: - image: https://some-url - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - external_url: https://some-url - animation_url: https://some-url - updated_at: 2022-08-16T17:43:26.991388Z - stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - name: Sword - created_at: 2022-08-16T17:43:26.991388Z - description: 2022-08-16T17:43:26.991388Z - attributes: - - display_type: number - value: Happy - trait_type: Aqua Power - - display_type: number - value: Happy - trait_type: Aqua Power - contract_address: contract_address - youtube_url: https://some-url - stack_count: 1 - properties: - stack: - $ref: '#/components/schemas/Stack' - stack_count: - description: Total count of NFTs in the stack matching the filter params - example: 1 - type: integer - market: - allOf: - - $ref: '#/components/schemas/Market' - nullable: true - listings: - description: List of open listings for the stack. - items: - $ref: '#/components/schemas/Listing' - maxItems: 10 - type: array - required: - - listings - - market - - stack - - stack_count - type: object - QuotesForStacksResult: - description: Quotes for stacks result - example: - result: - - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - market_collection: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - market_stack: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - market_collection: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - market_stack: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - page: - previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - properties: - result: - description: List of quotes - items: - $ref: '#/components/schemas/StackQuoteResult' - type: array - page: - $ref: '#/components/schemas/Page' - required: - - page - - result - type: object - StackQuoteResult: - description: Stack quote result - example: - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - market_collection: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - market_stack: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - properties: - chain: - $ref: '#/components/schemas/Chain' - stack_id: - format: uuid - type: string - market_stack: - $ref: '#/components/schemas/Market' - market_collection: - $ref: '#/components/schemas/Market' - required: - - chain - - market_collection - - market_stack - - stack_id - type: object - QuotesForNFTsResult: - description: Quotes for NFTs result - example: - result: - - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - token_id: token_id - market_collection: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - market_nft: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - market_stack: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - token_id: token_id - market_collection: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - market_nft: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - market_stack: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - page: - previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= - properties: - result: - description: List of quotes - items: - $ref: '#/components/schemas/NFTQuoteResult' - type: array - page: - $ref: '#/components/schemas/Page' - required: - - page - - result - type: object - NFTQuoteResult: - description: NFT quote result - example: - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - token_id: token_id - market_collection: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - market_nft: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - market_stack: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - properties: - chain: - $ref: '#/components/schemas/Chain' - token_id: - type: string - market_stack: - $ref: '#/components/schemas/Market' - market_nft: - $ref: '#/components/schemas/Market' - market_collection: - $ref: '#/components/schemas/Market' - required: - - chain - - market_collection - - market_nft - - market_stack - - token_id - type: object - Stack: - description: Stack - example: - image: https://some-url - chain: - name: imtbl-zkevm-testnet - id: eip155:13372 - external_url: https://some-url - animation_url: https://some-url - updated_at: 2022-08-16T17:43:26.991388Z - stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - name: Sword - created_at: 2022-08-16T17:43:26.991388Z - description: 2022-08-16T17:43:26.991388Z - attributes: - - display_type: number - value: Happy - trait_type: Aqua Power - - display_type: number - value: Happy - trait_type: Aqua Power - contract_address: contract_address - youtube_url: https://some-url - properties: - stack_id: - description: Stack ID - format: uuid - type: string - chain: - $ref: '#/components/schemas/Chain' - contract_address: - description: Contract address - type: string - created_at: - description: When the metadata was created - example: 2022-08-16T17:43:26.991388Z - format: date-time - type: string - updated_at: - description: When the metadata was last updated - example: 2022-08-16T17:43:26.991388Z - format: date-time - type: string - name: - description: The name of the NFT - example: Sword - nullable: true - type: string - description: - description: The description of the NFT - example: 2022-08-16T17:43:26.991388Z - nullable: true - type: string - image: - description: The image url of the NFT - example: https://some-url - nullable: true - type: string - external_url: - description: The external website link of NFT - example: https://some-url - nullable: true - type: string - animation_url: - description: The animation url of the NFT - example: https://some-url - nullable: true - type: string - youtube_url: - description: The youtube URL of NFT - example: https://some-url - nullable: true - type: string - attributes: - description: List of Metadata attributes - items: - $ref: '#/components/schemas/NFTMetadataAttribute' - nullable: true - type: array - required: - - animation_url - - attributes - - chain - - contract_address - - created_at - - description - - external_url - - image - - name - - stack_id - - updated_at - - youtube_url - type: object - NFTMetadataAttribute: - example: - display_type: number - value: Happy - trait_type: Aqua Power - properties: - display_type: - description: Display type for this attribute - enum: - - number - - boost_percentage - - boost_number - - date - example: number - nullable: true - type: string - trait_type: - description: The metadata trait type - example: Aqua Power - type: string - value: - $ref: '#/components/schemas/NFTMetadataAttribute_value' - required: - - trait_type - - value - type: object - Market: - description: Market data - example: - last_trade: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - floor_listing: "" - properties: - floor_listing: - allOf: - - $ref: '#/components/schemas/Listing' - nullable: true - last_trade: - $ref: '#/components/schemas/LastTrade' - required: - - floor_listing - - last_trade - type: object - LastTrade: - description: Last trade - example: - amount: "1" - trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - token_id: "1" - price_details: - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - created_at: 2022-08-16T17:43:26.991388Z - nullable: true - properties: - trade_id: - description: Trade ID - example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b - format: uuid - type: string - token_id: - description: Token id of the traded asset (uint256 as string) - example: "1" - type: string - price_details: - description: "Price details, list of payments involved in this trade" - items: - $ref: '#/components/schemas/PriceDetails' - type: array - amount: - description: Amount of the trade (uint256 as string) - example: "1" - type: string - created_at: - description: When the trade was created - example: 2022-08-16T17:43:26.991388Z - format: date-time - type: string - required: - - amount - - created_at - - price_details - - token_id - - trade_id - type: object - Listing: - description: Listing - example: - creator: 1334120697966828340666039427861105342297873844179 - amount: "1" - listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A - token_id: "1" - price_details: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - properties: - listing_id: - description: Global Order identifier - example: 018792C9-4AD7-8EC4-4038-9E05C598534A - type: string - price_details: - $ref: '#/components/schemas/PriceDetails' - token_id: - description: Token ID - example: "1" - type: string - creator: - description: ETH Address of listing creator - example: "1334120697966828340666039427861105342297873844179" - type: string - amount: - description: Amount of token included in the listing - example: "1" - type: string - required: - - amount - - creator - - listing_id - - price_details - - token_id - type: object - NativeToken: - properties: - type: - description: "Token type user is offering, which in this case is the native\ - \ IMX token" - enum: - - NATIVE - example: NATIVE - type: string - symbol: - description: The symbol of token - example: IMX - nullable: true - type: string - required: - - symbol - - type - type: object - ERC20Token: - properties: - type: - description: "Token type user is offering, which in this case is ERC20" - enum: - - ERC20 - example: ERC20 - type: string - contract_address: - description: Address of ERC20 token - example: "7973173272142053871140891859049224849605192591" - pattern: "^0x[a-fA-F0-9]{40}$" - type: string - symbol: - description: The symbol of token - example: ETH - nullable: true - type: string - decimals: - description: The decimals of token - example: 18 - nullable: true - type: integer - required: - - contract_address - - decimals - - symbol - - type - type: object - PriceDetails: - description: Price details - example: - amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - fees: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - token: null - fee_inclusive_amount: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - properties: - token: - $ref: '#/components/schemas/PriceDetails_token' - amount: - $ref: '#/components/schemas/PaymentAmount' - fee_inclusive_amount: - $ref: '#/components/schemas/PaymentAmount' - fees: - example: - - type: TAKER_ECOSYSTEM - recipient_address: 1390849295786071768276380950238675083608645509683 - amount: "1000000000000000000" - items: - $ref: '#/components/schemas/Fee' - type: array - required: - - amount - - fee_inclusive_amount - - fees - - token - type: object - PaymentAmount: - description: Amount details - example: - value_in_eth: "9750000000000000000" - value: "9750000000000000000" - properties: - value: - description: The token amount value. This value is provided in the smallest - unit of the token (e.g. wei for ETH) - example: "9750000000000000000" - pattern: \d+ - type: string - value_in_eth: - description: The token amount value in ETH - example: "9750000000000000000" - pattern: \d+ - type: string - required: - - value - - value_in_eth - type: object - BackfillRequest: - description: Backfill request - example: - api-url: https://indexer-mr.dev.imtbl.com - entity: entity - properties: - entity: - description: The entity to be backfilled - type: string - api-url: - description: The indexer url for the given chain and entity - example: https://indexer-mr.dev.imtbl.com - type: string - required: - - api-url - - entity - type: object - Fee: - example: - amount: "1000000000000000000" - type: ROYALTY - recipient_address: 1390849295786071768276380950238675083608645509683 - properties: - amount: - description: Fee in the payment currency - example: "1000000000000000000" - type: string - type: - description: Fee type - enum: - - ROYALTY - - MAKER_ECOSYSTEM - - TAKER_ECOSYSTEM - - PROTOCOL - example: ROYALTY - type: string - recipient_address: - description: Wallet address of fee recipient - example: "1390849295786071768276380950238675083608645509683" - pattern: "^0x[a-fA-F0-9]{40}$" - type: string - required: - - amount - - recipient_address - - type - type: object - APIError400: - allOf: - - $ref: '#/components/schemas/BasicAPIError' - - $ref: '#/components/schemas/APIError400_allOf' - example: - trace_id: e47634b79a5cd6894ddc9639ec4aad26 - code: VALIDATION_ERROR - link: https://docs.x.immutable.com/reference/#/ - details: "{}" - message: all fields must be provided - BasicAPIError: - properties: - message: - description: Error Message - example: all fields must be provided - type: string - link: - description: Link to IMX documentation that can help resolve this error - example: https://docs.x.immutable.com/reference/#/ - type: string - trace_id: - description: Trace ID of the initial request - example: e47634b79a5cd6894ddc9639ec4aad26 - type: string - required: - - link - - message - - trace_id - type: object - APIError401: - allOf: - - $ref: '#/components/schemas/BasicAPIError' - - $ref: '#/components/schemas/APIError401_allOf' - example: - trace_id: e47634b79a5cd6894ddc9639ec4aad26 - code: UNAUTHORISED_REQUEST - link: https://docs.x.immutable.com/reference/#/ - details: "{}" - message: all fields must be provided - APIError403: - allOf: - - $ref: '#/components/schemas/BasicAPIError' - - $ref: '#/components/schemas/APIError403_allOf' - example: - trace_id: e47634b79a5cd6894ddc9639ec4aad26 - code: AUTHENTICATION_ERROR - link: https://docs.x.immutable.com/reference/#/ - details: "{}" - message: all fields must be provided - APIError404: - allOf: - - $ref: '#/components/schemas/BasicAPIError' - - $ref: '#/components/schemas/APIError404_allOf' - example: - trace_id: e47634b79a5cd6894ddc9639ec4aad26 - code: RESOURCE_NOT_FOUND - link: https://docs.x.immutable.com/reference/#/ - details: "{}" - message: all fields must be provided - APIError500: - allOf: - - $ref: '#/components/schemas/BasicAPIError' - - $ref: '#/components/schemas/APIError500_allOf' - example: - trace_id: e47634b79a5cd6894ddc9639ec4aad26 - code: INTERNAL_SERVER_ERROR - link: https://docs.x.immutable.com/reference/#/ - details: "{}" - message: all fields must be provided - APIError409: - allOf: - - $ref: '#/components/schemas/BasicAPIError' - - $ref: '#/components/schemas/APIError409_allOf' - APIError429: - allOf: - - $ref: '#/components/schemas/BasicAPIError' - - $ref: '#/components/schemas/APIError429_allOf' - NFTMetadataAttribute_value: - description: The metadata trait value - example: Happy - oneOf: - - type: string - - type: number - - type: boolean - PriceDetails_token: - description: Token details - discriminator: - mapping: - NATIVE: '#/components/schemas/NativeToken' - ERC20: '#/components/schemas/ERC20Token' - propertyName: type - oneOf: - - $ref: '#/components/schemas/NativeToken' - - $ref: '#/components/schemas/ERC20Token' - APIError400_allOf: - properties: - code: - description: Error Code - enum: - - VALIDATION_ERROR - example: VALIDATION_ERROR - type: string - details: - description: Additional details to help resolve the error - nullable: true - type: object - required: - - code - - details - type: object - example: null - APIError401_allOf: - properties: - code: - description: Error Code - enum: - - UNAUTHORISED_REQUEST - example: UNAUTHORISED_REQUEST - type: string - details: - description: Additional details to help resolve the error - nullable: true - type: object - required: - - code - - details - type: object - example: null - APIError403_allOf: - properties: - code: - description: Error Code - enum: - - AUTHENTICATION_ERROR - example: AUTHENTICATION_ERROR - type: string - details: - description: Additional details to help resolve the error - nullable: true - type: object - required: - - code - - details - type: object - example: null - APIError404_allOf: - properties: - code: - description: Error Code - enum: - - RESOURCE_NOT_FOUND - example: RESOURCE_NOT_FOUND - type: string - details: - description: Additional details to help resolve the error - nullable: true - type: object - required: - - code - - details - type: object - example: null - APIError500_allOf: - properties: - code: - description: Error Code - enum: - - INTERNAL_SERVER_ERROR - example: INTERNAL_SERVER_ERROR - type: string - details: - description: Additional details to help resolve the error - nullable: true - type: object - required: - - code - - details - type: object - example: null - APIError409_allOf: - properties: - code: - description: Error Code - enum: - - CONFLICT_ERROR - example: CONFLICT_ERROR - type: string - details: - additionalProperties: true - description: Additional details to help resolve the error - nullable: true - type: object - required: - - code - - details - type: object - example: null - APIError429_allOf: - properties: - code: - description: Error Code - enum: - - TOO_MANY_REQUESTS_ERROR - example: TOO_MANY_REQUESTS_ERROR - type: string - details: - description: Additional details to help resolve the error - nullable: true - type: object - required: - - code - - details - type: object - example: null - securitySchemes: - ImmutableApiKey: - in: header - name: x-immutable-api-key - type: apiKey - x-go-name: ImmutableApiKey - diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError409AllOf.md b/Assets/Shared/Scripts/Data/API/Search/docs/APIError409AllOf.md deleted file mode 100644 index f87dcb3f..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError409AllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Search.Model.APIError409AllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | **string** | Error Code | -**Details** | **Dictionary<string, Object>** | Additional details to help resolve the error | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError429AllOf.md b/Assets/Shared/Scripts/Data/API/Search/docs/APIError429AllOf.md deleted file mode 100644 index 30317a52..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError429AllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Search.Model.APIError429AllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | **string** | Error Code | -**Details** | **Object** | Additional details to help resolve the error | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/APIError500AllOf.md b/Assets/Shared/Scripts/Data/API/Search/docs/APIError500AllOf.md deleted file mode 100644 index 44ae35d3..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/docs/APIError500AllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Search.Model.APIError500AllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | **string** | Error Code | -**Details** | **Object** | Additional details to help resolve the error | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/BackfillRequest.md b/Assets/Shared/Scripts/Data/API/Search/docs/BackfillRequest.md deleted file mode 100644 index c56fafd1..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/docs/BackfillRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Search.Model.BackfillRequest -Backfill request - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Entity** | **string** | The entity to be backfilled | -**ApiUrl** | **string** | The indexer url for the given chain and entity | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Search/docs/SearchApi.md b/Assets/Shared/Scripts/Data/API/Search/docs/SearchApi.md deleted file mode 100644 index a7960c5e..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/docs/SearchApi.md +++ /dev/null @@ -1,417 +0,0 @@ -# Immutable.Search.Api.SearchApi - -All URIs are relative to *https://api.immutable.com* - -| Method | HTTP request | Description | -|--------|--------------|-------------| -| [**Backfill**](SearchApi.md#backfill) | **POST** /v1/internal/chains/{chain_name}/backfill | Backfills or re-indexes a given entity | -| [**QuotesForNFTs**](SearchApi.md#quotesfornfts) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/nfts | Get pricing data for a list of token ids | -| [**QuotesForStacks**](SearchApi.md#quotesforstacks) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/stacks | Get pricing data for a list of stack ids | -| [**SearchStacks**](SearchApi.md#searchstacks) | **GET** /experimental/chains/{chain_name}/search/stacks | Search NFT stacks | - - -# **Backfill** -> void Backfill (string chainName, BackfillRequest backfillRequest) - -Backfills or re-indexes a given entity - -Backfills or re-indexes a given entity - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Search.Api; -using Immutable.Search.Client; -using Immutable.Search.Model; - -namespace Example -{ - public class BackfillExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new SearchApi(config); - var chainName = imtbl-zkevm-testnet; // string | The name of chain - var backfillRequest = new BackfillRequest(); // BackfillRequest | - - try - { - // Backfills or re-indexes a given entity - apiInstance.Backfill(chainName, backfillRequest); - } - catch (ApiException e) - { - Debug.Print("Exception when calling SearchApi.Backfill: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the BackfillWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Backfills or re-indexes a given entity - apiInstance.BackfillWithHttpInfo(chainName, backfillRequest); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling SearchApi.BackfillWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **chainName** | **string** | The name of chain | | -| **backfillRequest** | [**BackfillRequest**](BackfillRequest.md) | | | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **202** | Accepted | - | -| **400** | Bad Request (400) | - | -| **404** | The specified resource was not found (404) | - | -| **500** | Internal Server Error (500) | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **QuotesForNFTs** -> QuotesForNFTsResult QuotesForNFTs (string chainName, string contractAddress, List tokenId, string? pageCursor = null) - -Get pricing data for a list of token ids - -Get pricing data for a list of token ids - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Search.Api; -using Immutable.Search.Client; -using Immutable.Search.Model; - -namespace Example -{ - public class QuotesForNFTsExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new SearchApi(config); - var chainName = imtbl-zkevm-testnet; // string | The name of chain - var contractAddress = "contractAddress_example"; // string | Contract address for collection that these token ids are on - var tokenId = new List(); // List | List of token ids to get pricing data for - var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) - - try - { - // Get pricing data for a list of token ids - QuotesForNFTsResult result = apiInstance.QuotesForNFTs(chainName, contractAddress, tokenId, pageCursor); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling SearchApi.QuotesForNFTs: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the QuotesForNFTsWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Get pricing data for a list of token ids - ApiResponse response = apiInstance.QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling SearchApi.QuotesForNFTsWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **chainName** | **string** | The name of chain | | -| **contractAddress** | **string** | Contract address for collection that these token ids are on | | -| **tokenId** | [**List<string>**](string.md) | List of token ids to get pricing data for | | -| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | - -### Return type - -[**QuotesForNFTsResult**](QuotesForNFTsResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | 200 response | - | -| **400** | Bad Request (400) | - | -| **401** | Unauthorised Request (401) | - | -| **403** | Forbidden Request (403) | - | -| **404** | The specified resource was not found (404) | - | -| **500** | Internal Server Error (500) | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **QuotesForStacks** -> QuotesForStacksResult QuotesForStacks (string chainName, string contractAddress, List stackId, string? pageCursor = null) - -Get pricing data for a list of stack ids - -Get pricing data for a list of stack ids - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Search.Api; -using Immutable.Search.Client; -using Immutable.Search.Model; - -namespace Example -{ - public class QuotesForStacksExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new SearchApi(config); - var chainName = imtbl-zkevm-testnet; // string | The name of chain - var contractAddress = "contractAddress_example"; // string | Contract address for collection that these stacks are on - var stackId = new List(); // List | List of stack ids to get pricing data for - var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) - - try - { - // Get pricing data for a list of stack ids - QuotesForStacksResult result = apiInstance.QuotesForStacks(chainName, contractAddress, stackId, pageCursor); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling SearchApi.QuotesForStacks: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the QuotesForStacksWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Get pricing data for a list of stack ids - ApiResponse response = apiInstance.QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling SearchApi.QuotesForStacksWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **chainName** | **string** | The name of chain | | -| **contractAddress** | **string** | Contract address for collection that these stacks are on | | -| **stackId** | [**List<Guid>**](Guid.md) | List of stack ids to get pricing data for | | -| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | - -### Return type - -[**QuotesForStacksResult**](QuotesForStacksResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | 200 response | - | -| **400** | Bad Request (400) | - | -| **401** | Unauthorised Request (401) | - | -| **403** | Forbidden Request (403) | - | -| **404** | The specified resource was not found (404) | - | -| **500** | Internal Server Error (500) | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **SearchStacks** -> SearchStacksResult SearchStacks (string chainName, List contractAddress, string? accountAddress = null, bool? onlyIncludeOwnerListings = null, string? trait = null, string? keyword = null, int? pageSize = null, string? pageCursor = null) - -Search NFT stacks - -Search NFT stacks - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Search.Api; -using Immutable.Search.Client; -using Immutable.Search.Model; - -namespace Example -{ - public class SearchStacksExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new SearchApi(config); - var chainName = imtbl-zkevm-testnet; // string | The name of chain - var contractAddress = new List(); // List | List of contract addresses to filter by - var accountAddress = 1334120697966828340666039427861105342297873844179; // string? | Account address to filter by (optional) - var onlyIncludeOwnerListings = true; // bool? | Whether to the listings should include only the owner created listings (optional) - var trait = "trait_example"; // string? | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) - var keyword = sword; // string? | Keyword to search NFT name and description. Alphanumeric characters only. (optional) - var pageSize = 100; // int? | Number of results to return per page (optional) (default to 100) - var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) - - try - { - // Search NFT stacks - SearchStacksResult result = apiInstance.SearchStacks(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, trait, keyword, pageSize, pageCursor); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling SearchApi.SearchStacks: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the SearchStacksWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Search NFT stacks - ApiResponse response = apiInstance.SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, trait, keyword, pageSize, pageCursor); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling SearchApi.SearchStacksWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **chainName** | **string** | The name of chain | | -| **contractAddress** | [**List<string>**](string.md) | List of contract addresses to filter by | | -| **accountAddress** | **string?** | Account address to filter by | [optional] | -| **onlyIncludeOwnerListings** | **bool?** | Whether to the listings should include only the owner created listings | [optional] | -| **trait** | **string?** | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) | [optional] | -| **keyword** | **string?** | Keyword to search NFT name and description. Alphanumeric characters only. | [optional] | -| **pageSize** | **int?** | Number of results to return per page | [optional] [default to 100] | -| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | - -### Return type - -[**SearchStacksResult**](SearchStacksResult.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | 200 response | - | -| **400** | Bad Request (400) | - | -| **401** | Unauthorised Request (401) | - | -| **403** | Forbidden Request (403) | - | -| **404** | The specified resource was not found (404) | - | -| **500** | Internal Server Error (500) | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs deleted file mode 100644 index 3c10a53f..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs +++ /dev/null @@ -1,1344 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; -using Immutable.Search.Client; -using Immutable.Search.Model; - -namespace Immutable.Search.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISearchApiSync : IApiAccessor - { - #region Synchronous Operations - - /// - /// Backfills or re-indexes a given entity - /// - /// - /// Backfills or re-indexes a given entity - /// - /// Thrown when fails to make API call - /// The name of chain - /// - /// - void Backfill(string chainName, BackfillRequest backfillRequest); - - /// - /// Backfills or re-indexes a given entity - /// - /// - /// Backfills or re-indexes a given entity - /// - /// Thrown when fails to make API call - /// The name of chain - /// - /// ApiResponse of Object(void) - ApiResponse BackfillWithHttpInfo(string chainName, BackfillRequest backfillRequest); - - /// - /// Get pricing data for a list of token ids - /// - /// - /// Get pricing data for a list of token ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these token ids are on - /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// QuotesForNFTsResult - QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, - string? pageCursor = default); - - /// - /// Get pricing data for a list of token ids - /// - /// - /// Get pricing data for a list of token ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these token ids are on - /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// ApiResponse of QuotesForNFTsResult - ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, - List tokenId, string? pageCursor = default); - - /// - /// Get pricing data for a list of stack ids - /// - /// - /// Get pricing data for a list of stack ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these stacks are on - /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// QuotesForStacksResult - QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, - string? pageCursor = default); - - /// - /// Get pricing data for a list of stack ids - /// - /// - /// Get pricing data for a list of stack ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these stacks are on - /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// ApiResponse of QuotesForStacksResult - ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, - List stackId, string? pageCursor = default); - - /// - /// Search NFT stacks - /// - /// - /// Search NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of contract addresses to filter by - /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// - /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) - /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// SearchStacksResult - SearchStacksResult SearchStacks(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default); - - /// - /// Search NFT stacks - /// - /// - /// Search NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of contract addresses to filter by - /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// - /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) - /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// ApiResponse of SearchStacksResult - ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default); - - #endregion Synchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISearchApiAsync : IApiAccessor - { - #region Asynchronous Operations - - /// - /// Backfills or re-indexes a given entity - /// - /// - /// Backfills or re-indexes a given entity - /// - /// Thrown when fails to make API call - /// The name of chain - /// - /// Cancellation Token to cancel the request. - /// Task of void - Task BackfillAsync(string chainName, BackfillRequest backfillRequest, - CancellationToken cancellationToken = default); - - /// - /// Backfills or re-indexes a given entity - /// - /// - /// Backfills or re-indexes a given entity - /// - /// Thrown when fails to make API call - /// The name of chain - /// - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - Task> BackfillWithHttpInfoAsync(string chainName, BackfillRequest backfillRequest, - CancellationToken cancellationToken = default); - - /// - /// Get pricing data for a list of token ids - /// - /// - /// Get pricing data for a list of token ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these token ids are on - /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of QuotesForNFTsResult - Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, - string? pageCursor = default, CancellationToken cancellationToken = default); - - /// - /// Get pricing data for a list of token ids - /// - /// - /// Get pricing data for a list of token ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these token ids are on - /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (QuotesForNFTsResult) - Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, - List tokenId, string? pageCursor = default, CancellationToken cancellationToken = default); - - /// - /// Get pricing data for a list of stack ids - /// - /// - /// Get pricing data for a list of stack ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these stacks are on - /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of QuotesForStacksResult - Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, - string? pageCursor = default, CancellationToken cancellationToken = default); - - /// - /// Get pricing data for a list of stack ids - /// - /// - /// Get pricing data for a list of stack ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these stacks are on - /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (QuotesForStacksResult) - Task> QuotesForStacksWithHttpInfoAsync(string chainName, - string contractAddress, List stackId, string? pageCursor = default, - CancellationToken cancellationToken = default); - - /// - /// Search NFT stacks - /// - /// - /// Search NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of contract addresses to filter by - /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// - /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) - /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of SearchStacksResult - Task SearchStacksAsync(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default, - CancellationToken cancellationToken = default); - - /// - /// Search NFT stacks - /// - /// - /// Search NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of contract addresses to filter by - /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// - /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) - /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (SearchStacksResult) - Task> SearchStacksWithHttpInfoAsync(string chainName, - List contractAddress, string? accountAddress = default, bool? onlyIncludeOwnerListings = default, - string? trait = default, string? keyword = default, int? pageSize = default, string? pageCursor = default, - CancellationToken cancellationToken = default); - - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ISearchApi : ISearchApiSync, ISearchApiAsync - { - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public class SearchApi : IDisposable, ISearchApi - { - private ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. - /// It's better to reuse the - /// - /// HttpClient - /// and HttpClientHandler - /// - /// . - /// - /// - public SearchApi() : this((string)null) - { - } - - /// - /// Initializes a new instance of the class. - /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. - /// It's better to reuse the - /// - /// HttpClient - /// and HttpClientHandler - /// - /// . - /// - /// The target service's base path in URL format. - /// - /// - public SearchApi(string basePath) - { - Configuration = Search.Client.Configuration.MergeConfigurations( - GlobalConfiguration.Instance, - new Configuration { BasePath = basePath } - ); - ApiClient = new ApiClient(Configuration.BasePath); - Client = ApiClient; - AsynchronousClient = ApiClient; - ExceptionFactory = Search.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class using Configuration object. - /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. - /// It's better to reuse the - /// - /// HttpClient - /// and HttpClientHandler - /// - /// . - /// - /// An instance of Configuration. - /// - /// - public SearchApi(Configuration configuration) - { - if (configuration == null) throw new ArgumentNullException("configuration"); - - Configuration = Search.Client.Configuration.MergeConfigurations( - GlobalConfiguration.Instance, - configuration - ); - ApiClient = new ApiClient(Configuration.BasePath); - Client = ApiClient; - AsynchronousClient = ApiClient; - ExceptionFactory = Search.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using a Configuration object and client instance. - /// - /// The client interface for synchronous API access. - /// The client interface for asynchronous API access. - /// The configuration object. - /// - public SearchApi(ISynchronousClient client, IAsynchronousClient asyncClient, - IReadableConfiguration configuration) - { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); - - Client = client; - AsynchronousClient = asyncClient; - Configuration = configuration; - ExceptionFactory = Search.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Holds the ApiClient if created - /// - public ApiClient ApiClient { get; set; } - - /// - /// The client for accessing this underlying API asynchronously. - /// - public IAsynchronousClient AsynchronousClient { get; set; } - - /// - /// The client for accessing this underlying API synchronously. - /// - public ISynchronousClient Client { get; set; } - - /// - /// Disposes resources if they were created by us - /// - public void Dispose() - { - ApiClient?.Dispose(); - } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public string GetBasePath() - { - return Configuration.BasePath; - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public IReadableConfiguration Configuration { get; set; } - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - return _exceptionFactory; - } - set => _exceptionFactory = value; - } - - /// - /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity - /// - /// Thrown when fails to make API call - /// The name of chain - /// - /// - public void Backfill(string chainName, BackfillRequest backfillRequest) - { - BackfillWithHttpInfo(chainName, backfillRequest); - } - - /// - /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity - /// - /// Thrown when fails to make API call - /// The name of chain - /// - /// ApiResponse of Object(void) - public ApiResponse BackfillWithHttpInfo(string chainName, BackfillRequest backfillRequest) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->Backfill"); - - // verify the required parameter 'backfillRequest' is set - if (backfillRequest == null) - throw new ApiException(400, - "Missing required parameter 'backfillRequest' when calling SearchApi->Backfill"); - - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.Data = backfillRequest; - - - // make the HTTP request - var localVarResponse = Client.Post("/v1/internal/chains/{chain_name}/backfill", - localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("Backfill", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity - /// - /// Thrown when fails to make API call - /// The name of chain - /// - /// Cancellation Token to cancel the request. - /// Task of void - public async Task BackfillAsync(string chainName, BackfillRequest backfillRequest, - CancellationToken cancellationToken = default) - { - var task = BackfillWithHttpInfoAsync(chainName, backfillRequest, cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - await task.ConfigureAwait(false); -#else - await task; -#endif - } - - /// - /// Backfills or re-indexes a given entity Backfills or re-indexes a given entity - /// - /// Thrown when fails to make API call - /// The name of chain - /// - /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async Task> BackfillWithHttpInfoAsync(string chainName, - BackfillRequest backfillRequest, CancellationToken cancellationToken = default) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new ApiException(400, "Missing required parameter 'chainName' when calling SearchApi->Backfill"); - - // verify the required parameter 'backfillRequest' is set - if (backfillRequest == null) - throw new ApiException(400, - "Missing required parameter 'backfillRequest' when calling SearchApi->Backfill"); - - - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.Data = backfillRequest; - - - // make the HTTP request - - var task = AsynchronousClient.PostAsync("/v1/internal/chains/{chain_name}/backfill", - localVarRequestOptions, Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("Backfill", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Get pricing data for a list of token ids Get pricing data for a list of token ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these token ids are on - /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// QuotesForNFTsResult - public QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, - string? pageCursor = default) - { - var localVarResponse = QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); - return localVarResponse.Data; - } - - /// - /// Get pricing data for a list of token ids Get pricing data for a list of token ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these token ids are on - /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// ApiResponse of QuotesForNFTsResult - public ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, - List tokenId, string? pageCursor = default) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->QuotesForNFTs"); - - // verify the required parameter 'contractAddress' is set - if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForNFTs"); - - // verify the required parameter 'tokenId' is set - if (tokenId == null) - throw new ApiException(400, - "Missing required parameter 'tokenId' when calling SearchApi->QuotesForNFTs"); - - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.PathParameters.Add("contract_address", - ClientUtils.ParameterToString(contractAddress)); // path parameter - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); - if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); - - - // make the HTTP request - var localVarResponse = Client.Get( - "/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, - Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("QuotesForNFTs", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Get pricing data for a list of token ids Get pricing data for a list of token ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these token ids are on - /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of QuotesForNFTsResult - public async Task QuotesForNFTsAsync(string chainName, string contractAddress, - List tokenId, string? pageCursor = default, CancellationToken cancellationToken = default) - { - var task = QuotesForNFTsWithHttpInfoAsync(chainName, contractAddress, tokenId, pageCursor, - cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Search.Client.ApiResponse localVarResponse = await task; -#endif - return localVarResponse.Data; - } - - /// - /// Get pricing data for a list of token ids Get pricing data for a list of token ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these token ids are on - /// List of token ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (QuotesForNFTsResult) - public async Task> QuotesForNFTsWithHttpInfoAsync(string chainName, - string contractAddress, List tokenId, string? pageCursor = default, - CancellationToken cancellationToken = default) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->QuotesForNFTs"); - - // verify the required parameter 'contractAddress' is set - if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForNFTs"); - - // verify the required parameter 'tokenId' is set - if (tokenId == null) - throw new ApiException(400, - "Missing required parameter 'tokenId' when calling SearchApi->QuotesForNFTs"); - - - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.PathParameters.Add("contract_address", - ClientUtils.ParameterToString(contractAddress)); // path parameter - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); - if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); - - - // make the HTTP request - - var task = AsynchronousClient.GetAsync( - "/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, - Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("QuotesForNFTs", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these stacks are on - /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// QuotesForStacksResult - public QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, - string? pageCursor = default) - { - var localVarResponse = QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); - return localVarResponse.Data; - } - - /// - /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these stacks are on - /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// ApiResponse of QuotesForStacksResult - public ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, - List stackId, string? pageCursor = default) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->QuotesForStacks"); - - // verify the required parameter 'contractAddress' is set - if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForStacks"); - - // verify the required parameter 'stackId' is set - if (stackId == null) - throw new ApiException(400, - "Missing required parameter 'stackId' when calling SearchApi->QuotesForStacks"); - - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.PathParameters.Add("contract_address", - ClientUtils.ParameterToString(contractAddress)); // path parameter - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); - if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); - - - // make the HTTP request - var localVarResponse = Client.Get( - "/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, - Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("QuotesForStacks", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these stacks are on - /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of QuotesForStacksResult - public async Task QuotesForStacksAsync(string chainName, string contractAddress, - List stackId, string? pageCursor = default, CancellationToken cancellationToken = default) - { - var task = QuotesForStacksWithHttpInfoAsync(chainName, contractAddress, stackId, pageCursor, - cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Search.Client.ApiResponse localVarResponse = await task; -#endif - return localVarResponse.Data; - } - - /// - /// Get pricing data for a list of stack ids Get pricing data for a list of stack ids - /// - /// Thrown when fails to make API call - /// The name of chain - /// Contract address for collection that these stacks are on - /// List of stack ids to get pricing data for - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (QuotesForStacksResult) - public async Task> QuotesForStacksWithHttpInfoAsync(string chainName, - string contractAddress, List stackId, string? pageCursor = default, - CancellationToken cancellationToken = default) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->QuotesForStacks"); - - // verify the required parameter 'contractAddress' is set - if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->QuotesForStacks"); - - // verify the required parameter 'stackId' is set - if (stackId == null) - throw new ApiException(400, - "Missing required parameter 'stackId' when calling SearchApi->QuotesForStacks"); - - - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.PathParameters.Add("contract_address", - ClientUtils.ParameterToString(contractAddress)); // path parameter - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); - if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); - - - // make the HTTP request - - var task = AsynchronousClient.GetAsync( - "/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, - Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("QuotesForStacks", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Search NFT stacks Search NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of contract addresses to filter by - /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// - /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) - /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// SearchStacksResult - public SearchStacksResult SearchStacks(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default) - { - var localVarResponse = SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, - onlyIncludeOwnerListings, trait, keyword, pageSize, pageCursor); - return localVarResponse.Data; - } - - /// - /// Search NFT stacks Search NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of contract addresses to filter by - /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// - /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) - /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// ApiResponse of SearchStacksResult - public ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->SearchStacks"); - - // verify the required parameter 'contractAddress' is set - if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->SearchStacks"); - - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); - if (accountAddress != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); - if (onlyIncludeOwnerListings != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); - if (trait != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "trait", trait)); - if (keyword != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "keyword", keyword)); - if (pageSize != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); - if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); - - - // make the HTTP request - var localVarResponse = Client.Get("/experimental/chains/{chain_name}/search/stacks", - localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("SearchStacks", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Search NFT stacks Search NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of contract addresses to filter by - /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// - /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) - /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of SearchStacksResult - public async Task SearchStacksAsync(string chainName, List contractAddress, - string? accountAddress = default, bool? onlyIncludeOwnerListings = default, string? trait = default, - string? keyword = default, int? pageSize = default, string? pageCursor = default, - CancellationToken cancellationToken = default) - { - var task = SearchStacksWithHttpInfoAsync(chainName, contractAddress, accountAddress, - onlyIncludeOwnerListings, trait, keyword, pageSize, pageCursor, cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Search.Client.ApiResponse localVarResponse = await task; -#endif - return localVarResponse.Data; - } - - /// - /// Search NFT stacks Search NFT stacks - /// - /// Thrown when fails to make API call - /// The name of chain - /// List of contract addresses to filter by - /// Account address to filter by (optional) - /// - /// Whether to the listings should include only the owner created listings - /// (optional) - /// - /// - /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\ - /// "values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) - /// (optional) - /// - /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) - /// Number of results to return per page (optional, default to 100) - /// - /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. - /// (optional) - /// - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (SearchStacksResult) - public async Task> SearchStacksWithHttpInfoAsync(string chainName, - List contractAddress, string? accountAddress = default, bool? onlyIncludeOwnerListings = default, - string? trait = default, string? keyword = default, int? pageSize = default, string? pageCursor = default, - CancellationToken cancellationToken = default) - { - // verify the required parameter 'chainName' is set - if (chainName == null) - throw new ApiException(400, - "Missing required parameter 'chainName' when calling SearchApi->SearchStacks"); - - // verify the required parameter 'contractAddress' is set - if (contractAddress == null) - throw new ApiException(400, - "Missing required parameter 'contractAddress' when calling SearchApi->SearchStacks"); - - - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("chain_name", - ClientUtils.ParameterToString(chainName)); // path parameter - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); - if (accountAddress != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); - if (onlyIncludeOwnerListings != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); - if (trait != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "trait", trait)); - if (keyword != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "keyword", keyword)); - if (pageSize != null) - localVarRequestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); - if (pageCursor != null) - localVarRequestOptions.QueryParameters.Add( - ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); - - - // make the HTTP request - - var task = AsynchronousClient.GetAsync( - "/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, Configuration, - cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("SearchStacks", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs deleted file mode 100644 index d12b579c..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Collections.Generic; - -namespace Immutable.Search.Client -{ - /// - /// A URI builder - /// - class WebRequestPathBuilder - { - private string _baseUrl; - private string _path; - private string _query = "?"; - public WebRequestPathBuilder(string baseUrl, string path) - { - _baseUrl = baseUrl; - _path = path; - } - - public void AddPathParameters(Dictionary parameters) - { - foreach (var parameter in parameters) - { - _path = _path.Replace("{" + parameter.Key + "}", Uri.EscapeDataString(parameter.Value)); - } - } - - public void AddQueryParameters(Multimap parameters) - { - foreach (var parameter in parameters) - { - foreach (var value in parameter.Value) - { - _query = _query + parameter.Key + "=" + Uri.EscapeDataString(value) + "&"; - } - } - } - - public string GetFullUri() - { - return _baseUrl + _path + _query.Substring(0, _query.Length - 1); - } - } -} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Immutable.Search.asmdef b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Immutable.Search.asmdef deleted file mode 100644 index 8a59f88c..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Immutable.Search.asmdef +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Immutable.Search", - "overrideReferences": true, - "precompiledReferences": [ - "Newtonsoft.Json.dll" - ] -} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400AllOf.cs deleted file mode 100644 index 5ac45fe2..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError400AllOf.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; - -namespace Immutable.Search.Model -{ - /// - /// APIError400AllOf - /// - [DataContract(Name = "APIError400_allOf")] - public partial class APIError400AllOf - { - /// - /// Error Code - /// - /// Error Code - [JsonConverter(typeof(StringEnumConverter))] - public enum CodeEnum - { - /// - /// Enum VALIDATIONERROR for value: VALIDATION_ERROR - /// - [EnumMember(Value = "VALIDATION_ERROR")] - VALIDATIONERROR = 1 - } - - - /// - /// Error Code - /// - /// Error Code - /// VALIDATION_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected APIError400AllOf() { } - /// - /// Initializes a new instance of the class. - /// - /// Error Code (required). - /// Additional details to help resolve the error (required). - public APIError400AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) - { - this.Code = code; - // to ensure "details" is required (not null) - if (details == null) - { - throw new ArgumentNullException("details is a required property for APIError400AllOf and cannot be null"); - } - this.Details = details; - } - - /// - /// Additional details to help resolve the error - /// - /// Additional details to help resolve the error - [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public Object Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class APIError400AllOf {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - } - -} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401AllOf.cs deleted file mode 100644 index f4d93a7e..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError401AllOf.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; - -namespace Immutable.Search.Model -{ - /// - /// APIError401AllOf - /// - [DataContract(Name = "APIError401_allOf")] - public partial class APIError401AllOf - { - /// - /// Error Code - /// - /// Error Code - [JsonConverter(typeof(StringEnumConverter))] - public enum CodeEnum - { - /// - /// Enum UNAUTHORISEDREQUEST for value: UNAUTHORISED_REQUEST - /// - [EnumMember(Value = "UNAUTHORISED_REQUEST")] - UNAUTHORISEDREQUEST = 1 - } - - - /// - /// Error Code - /// - /// Error Code - /// UNAUTHORISED_REQUEST - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected APIError401AllOf() { } - /// - /// Initializes a new instance of the class. - /// - /// Error Code (required). - /// Additional details to help resolve the error (required). - public APIError401AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) - { - this.Code = code; - // to ensure "details" is required (not null) - if (details == null) - { - throw new ArgumentNullException("details is a required property for APIError401AllOf and cannot be null"); - } - this.Details = details; - } - - /// - /// Additional details to help resolve the error - /// - /// Additional details to help resolve the error - [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public Object Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class APIError401AllOf {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - } - -} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403AllOf.cs deleted file mode 100644 index 0b450e03..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError403AllOf.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; - -namespace Immutable.Search.Model -{ - /// - /// APIError403AllOf - /// - [DataContract(Name = "APIError403_allOf")] - public partial class APIError403AllOf - { - /// - /// Error Code - /// - /// Error Code - [JsonConverter(typeof(StringEnumConverter))] - public enum CodeEnum - { - /// - /// Enum AUTHENTICATIONERROR for value: AUTHENTICATION_ERROR - /// - [EnumMember(Value = "AUTHENTICATION_ERROR")] - AUTHENTICATIONERROR = 1 - } - - - /// - /// Error Code - /// - /// Error Code - /// AUTHENTICATION_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected APIError403AllOf() { } - /// - /// Initializes a new instance of the class. - /// - /// Error Code (required). - /// Additional details to help resolve the error (required). - public APIError403AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) - { - this.Code = code; - // to ensure "details" is required (not null) - if (details == null) - { - throw new ArgumentNullException("details is a required property for APIError403AllOf and cannot be null"); - } - this.Details = details; - } - - /// - /// Additional details to help resolve the error - /// - /// Additional details to help resolve the error - [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public Object Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class APIError403AllOf {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - } - -} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404AllOf.cs deleted file mode 100644 index e5c472e4..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError404AllOf.cs +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Search.Model -{ - /// - /// APIError404AllOf - /// - [DataContract(Name = "APIError404_allOf")] - public class APIError404AllOf - { - /// - /// Error Code - /// - /// Error Code - [JsonConverter(typeof(StringEnumConverter))] - public enum CodeEnum - { - /// - /// Enum RESOURCENOTFOUND for value: RESOURCE_NOT_FOUND - /// - [EnumMember(Value = "RESOURCE_NOT_FOUND")] - RESOURCENOTFOUND = 1 - } - - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected APIError404AllOf() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// Error Code (required). - /// Additional details to help resolve the error (required). - public APIError404AllOf(CodeEnum code = default, object details = default) - { - Code = code; - // to ensure "details" is required (not null) - if (details == null) - throw new ArgumentNullException( - "details is a required property for APIError404AllOf and cannot be null"); - Details = details; - } - - - /// - /// Error Code - /// - /// Error Code - /// RESOURCE_NOT_FOUND - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - - /// - /// Additional details to help resolve the error - /// - /// Additional details to help resolve the error - [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class APIError404AllOf {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409AllOf.cs deleted file mode 100644 index 037dbd6a..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError409AllOf.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; - -namespace Immutable.Search.Model -{ - /// - /// APIError409AllOf - /// - [DataContract(Name = "APIError409_allOf")] - public partial class APIError409AllOf - { - /// - /// Error Code - /// - /// Error Code - [JsonConverter(typeof(StringEnumConverter))] - public enum CodeEnum - { - /// - /// Enum CONFLICTERROR for value: CONFLICT_ERROR - /// - [EnumMember(Value = "CONFLICT_ERROR")] - CONFLICTERROR = 1 - } - - - /// - /// Error Code - /// - /// Error Code - /// CONFLICT_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected APIError409AllOf() { } - /// - /// Initializes a new instance of the class. - /// - /// Error Code (required). - /// Additional details to help resolve the error (required). - public APIError409AllOf(CodeEnum code = default(CodeEnum), Dictionary details = default(Dictionary)) - { - this.Code = code; - // to ensure "details" is required (not null) - if (details == null) - { - throw new ArgumentNullException("details is a required property for APIError409AllOf and cannot be null"); - } - this.Details = details; - } - - /// - /// Additional details to help resolve the error - /// - /// Additional details to help resolve the error - [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public Dictionary Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class APIError409AllOf {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - } - -} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429AllOf.cs deleted file mode 100644 index 392656f7..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError429AllOf.cs +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Search.Model -{ - /// - /// APIError429AllOf - /// - [DataContract(Name = "APIError429_allOf")] - public class APIError429AllOf - { - /// - /// Error Code - /// - /// Error Code - [JsonConverter(typeof(StringEnumConverter))] - public enum CodeEnum - { - /// - /// Enum TOOMANYREQUESTSERROR for value: TOO_MANY_REQUESTS_ERROR - /// - [EnumMember(Value = "TOO_MANY_REQUESTS_ERROR")] - TOOMANYREQUESTSERROR = 1 - } - - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected APIError429AllOf() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// Error Code (required). - /// Additional details to help resolve the error (required). - public APIError429AllOf(CodeEnum code = default, object details = default) - { - Code = code; - // to ensure "details" is required (not null) - if (details == null) - throw new ArgumentNullException( - "details is a required property for APIError429AllOf and cannot be null"); - Details = details; - } - - - /// - /// Error Code - /// - /// Error Code - /// TOO_MANY_REQUESTS_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - - /// - /// Additional details to help resolve the error - /// - /// Additional details to help resolve the error - [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public object Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class APIError429AllOf {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500AllOf.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500AllOf.cs deleted file mode 100644 index 03bf6dba..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/APIError500AllOf.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; - -namespace Immutable.Search.Model -{ - /// - /// APIError500AllOf - /// - [DataContract(Name = "APIError500_allOf")] - public partial class APIError500AllOf - { - /// - /// Error Code - /// - /// Error Code - [JsonConverter(typeof(StringEnumConverter))] - public enum CodeEnum - { - /// - /// Enum INTERNALSERVERERROR for value: INTERNAL_SERVER_ERROR - /// - [EnumMember(Value = "INTERNAL_SERVER_ERROR")] - INTERNALSERVERERROR = 1 - } - - - /// - /// Error Code - /// - /// Error Code - /// INTERNAL_SERVER_ERROR - [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] - public CodeEnum Code { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected APIError500AllOf() { } - /// - /// Initializes a new instance of the class. - /// - /// Error Code (required). - /// Additional details to help resolve the error (required). - public APIError500AllOf(CodeEnum code = default(CodeEnum), Object details = default(Object)) - { - this.Code = code; - // to ensure "details" is required (not null) - if (details == null) - { - throw new ArgumentNullException("details is a required property for APIError500AllOf and cannot be null"); - } - this.Details = details; - } - - /// - /// Additional details to help resolve the error - /// - /// Additional details to help resolve the error - [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] - public Object Details { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class APIError500AllOf {\n"); - sb.Append(" Code: ").Append(Code).Append("\n"); - sb.Append(" Details: ").Append(Details).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - } - -} diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BackfillRequest.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BackfillRequest.cs deleted file mode 100644 index 232403b6..00000000 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/BackfillRequest.cs +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Indexer Search API - * - * This API implements endpoints to power data driven marketplace and game experiences - * - * The version of the OpenAPI document: 1.0 - * Contact: helpmebuild@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using OpenAPIDateConverter = Immutable.Search.Client.OpenAPIDateConverter; - -namespace Immutable.Search.Model -{ - /// - /// Backfill request - /// - [DataContract(Name = "BackfillRequest")] - public partial class BackfillRequest - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected BackfillRequest() { } - /// - /// Initializes a new instance of the class. - /// - /// The entity to be backfilled (required). - /// The indexer url for the given chain and entity (required). - public BackfillRequest(string entity = default(string), string apiUrl = default(string)) - { - // to ensure "entity" is required (not null) - if (entity == null) - { - throw new ArgumentNullException("entity is a required property for BackfillRequest and cannot be null"); - } - this.Entity = entity; - // to ensure "apiUrl" is required (not null) - if (apiUrl == null) - { - throw new ArgumentNullException("apiUrl is a required property for BackfillRequest and cannot be null"); - } - this.ApiUrl = apiUrl; - } - - /// - /// The entity to be backfilled - /// - /// The entity to be backfilled - [DataMember(Name = "entity", IsRequired = true, EmitDefaultValue = true)] - public string Entity { get; set; } - - /// - /// The indexer url for the given chain and entity - /// - /// The indexer url for the given chain and entity - /// https://indexer-mr.dev.imtbl.com - [DataMember(Name = "api-url", IsRequired = true, EmitDefaultValue = true)] - public string ApiUrl { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class BackfillRequest {\n"); - sb.Append(" Entity: ").Append(Entity).Append("\n"); - sb.Append(" ApiUrl: ").Append(ApiUrl).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - } - -} diff --git a/Assets/Shared/Scripts/Domain.meta b/Assets/Shared/Scripts/Domain.meta new file mode 100644 index 00000000..4e8ff458 --- /dev/null +++ b/Assets/Shared/Scripts/Domain.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: f9492f8142044de68ec7aba723d86be6 +timeCreated: 1728858412 \ No newline at end of file diff --git a/Assets/Shared/Scripts/Domain/OrderbookManager.cs b/Assets/Shared/Scripts/Domain/OrderbookManager.cs new file mode 100644 index 00000000..db4b3168 --- /dev/null +++ b/Assets/Shared/Scripts/Domain/OrderbookManager.cs @@ -0,0 +1,230 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Cysharp.Threading.Tasks; +using Immutable.Orderbook.Api; +using Immutable.Orderbook.Client; +using Immutable.Orderbook.Model; +using Immutable.Passport; +using Immutable.Passport.Model; +using Newtonsoft.Json; +using UnityEngine; +using ERC1155Item = Immutable.Orderbook.Model.ERC1155Item; +using ERC20Item = Immutable.Orderbook.Model.ERC20Item; +using ERC721Item = Immutable.Orderbook.Model.ERC721Item; + +namespace HyperCasual.Runner +{ + public class OrderbookManager + { + private static readonly Lazy s_Instance = new(() => new OrderbookManager()); + + private readonly OrderbookApi m_OrderbookApi = new(new Configuration { BasePath = Config.BASE_URL }); + + private OrderbookManager() { } + + public static OrderbookManager Instance => s_Instance.Value; + + /// + /// Creates a new listing for the specified NFT. + /// + /// The address of the NFT's contract. + /// The type of the contract (e.g., "ERC721" or "ERC1155"). + /// The ID of the NFT. + /// + /// The sale price of the NFT, represented as a string amount in IMR (scaled by 10^18). + /// + /// + /// The quantity of the NFT to sell. "1" for ERC721 tokens and a higher number for ERC1155 tokens. + /// + /// + /// If true, the function will continuously poll the marketplace endpoint to ensure the listing status + /// updates to "ACTIVE" upon creation. If false, the function will not verify the listing status. + /// + /// + /// A that returns the listing ID if the sale is successfully created. + /// + public async UniTask CreateListing( + string contractAddress, string contractType, string tokenId, + string price, string amountToSell, bool confirmListing = true) + { + try + { + var listingData = await PrepareListing(contractAddress, contractType, tokenId, price, amountToSell); + + await SignAndSubmitApproval(listingData); + + var signature = await SignListing(listingData); + + var listingId = await ListAsset(signature, listingData); + + if (confirmListing) + await ConfirmListingStatus(listingId, "ACTIVE"); + + return listingId; + } + catch (ApiException e) + { + HandleApiException(e); + throw; + } + } + + /// + /// Prepares a listing for the specified NFT and purchase details. + /// + private async UniTask PrepareListing( + string contractAddress, string contractType, string tokenId, + string price, string amountToSell) + { + var sellRequest = CreateSellRequest(contractType, contractAddress, tokenId, amountToSell); + var buyRequest = new ERC20Item(price, Contract.TOKEN); + + return await m_OrderbookApi.PrepareListingAsync(new PrepareListingRequest( + makerAddress: SaveManager.Instance.WalletAddress, + sell: sellRequest, + buy: new PrepareListingRequestBuy(buyRequest) + )); + } + + /// + /// Creates the appropriate sell request based on the contract type. + /// + private static PrepareListingRequestSell CreateSellRequest( + string contractType, string contractAddress, string tokenId, string amountToSell) + { + return contractType.ToUpper() switch + { + "ERC1155" => new PrepareListingRequestSell(new ERC1155Item(amountToSell, contractAddress, tokenId)), + "ERC721" => new PrepareListingRequestSell(new ERC721Item(contractAddress, tokenId)), + _ => throw new Exception($"Unsupported contract type: {contractType}") + }; + } + + /// + /// Signs and submits approval if required by the listing. + /// + private async UniTask SignAndSubmitApproval(PrepareListing200Response listingData) + { + var transactionAction = listingData.Actions + .FirstOrDefault(action => action.ActualInstance is TransactionAction)? + .GetTransactionAction(); + + if (transactionAction == null) return; + + var response = await Passport.Instance.ZkEvmSendTransactionWithConfirmation( + new TransactionRequest + { + to = transactionAction.PopulatedTransactions.To, + data = transactionAction.PopulatedTransactions.Data, + value = "0" + }); + + if (response.status != "1") + throw new Exception("Failed to sign and submit approval."); + } + + /// + /// Signs the listing with the user's wallet. + /// + private async UniTask SignListing(PrepareListing200Response listingData) + { + var signableAction = listingData.Actions + .FirstOrDefault(action => action.ActualInstance is SignableAction)? + .GetSignableAction(); + + if (signableAction == null) + throw new Exception("No valid listing to sign."); + + var messageJson = JsonConvert.SerializeObject(signableAction.Message, Formatting.Indented); + // return await Passport.Instance.ZkEvmSignTypedDataV4(messageJson); + return ""; + } + + /// + /// Finalises the listing and returns the listing ID. + /// + private async UniTask ListAsset(string signature, PrepareListing200Response listingData) + { + var response = await m_OrderbookApi.CreateListingAsync(new CreateListingRequest( + new List(), + listingData.OrderComponents, + listingData.OrderHash, + signature + )); + return response.Result.Id; + } + + /// + /// Cancels the specified listing and optionally verifies its cancellation status. + /// + /// The unique identifier of the listing to cancel. + /// + /// If true, the function will poll the listing endpoint to confirm that the listing status + /// has changed to "CANCELLED". If false, the function will not verify the listing status. + /// + public async UniTask CancelListing(string listingId, bool confirmListing = true) + { + try + { + var request = new CancelOrdersOnChainRequest( + accountAddress: SaveManager.Instance.WalletAddress, orderIds: new List { listingId }); + + var response = await m_OrderbookApi.CancelOrdersOnChainAsync(request); + var transactionAction = response?.CancellationAction.PopulatedTransactions; + + if (transactionAction?.To == null) + throw new Exception("Failed to cancel listing."); + + var txResponse = await Passport.Instance.ZkEvmSendTransactionWithConfirmation( + new TransactionRequest + { + to = transactionAction.To, + data = transactionAction.Data, + value = "0" + }); + + if (txResponse.status != "1") + throw new Exception("Failed to cancel listing."); + + if (confirmListing) + await ConfirmListingStatus(listingId, "CANCELLED"); + } + catch (ApiException e) + { + HandleApiException(e); + throw; + } + } + + /// + /// Confirms the listing status by polling until it matches the desired status or times out. + /// + private async UniTask ConfirmListingStatus(string listingId, string desiredStatus) + { + var isConfirmed = await PollingHelper.PollAsync( + $"{Config.BASE_URL}/v1/chains/imtbl-zkevm-devnet/orders/listings/{listingId}", + response => + { + var listingResponse = JsonUtility.FromJson(response); + return listingResponse.result?.status.name == desiredStatus; + }); + + Debug.Log(isConfirmed + ? $"Listing {listingId} is {desiredStatus.ToLower()}." + : $"Failed to confirm listing status: {desiredStatus.ToLower()}."); + } + + /// + /// Handles API exceptions by logging relevant details. + /// + private static void HandleApiException(ApiException e) + { + Debug.LogError($"API Error: {e.Message} (Status: {e.ErrorCode})"); + Debug.LogError(e.ErrorContent); + Debug.LogError(e.StackTrace); + var errorModel = JsonConvert.DeserializeObject($"{e.ErrorContent}"); + if (errorModel != null) throw new Exception(errorModel.message); + } + } +} diff --git a/Assets/Shared/Scripts/Domain/OrderbookManager.cs.meta b/Assets/Shared/Scripts/Domain/OrderbookManager.cs.meta new file mode 100644 index 00000000..5a60da36 --- /dev/null +++ b/Assets/Shared/Scripts/Domain/OrderbookManager.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: f9621bfeb6b74b4b91cf9dea8722e9c7 +timeCreated: 1728858427 \ No newline at end of file diff --git a/Assets/Shared/Scripts/ImageUrlObject.cs b/Assets/Shared/Scripts/ImageUrlObject.cs new file mode 100644 index 00000000..aaf8b516 --- /dev/null +++ b/Assets/Shared/Scripts/ImageUrlObject.cs @@ -0,0 +1,45 @@ +using Cysharp.Threading.Tasks; +using UnityEngine; +using UnityEngine.Networking; +using UnityEngine.UI; + +namespace HyperCasual.Runner +{ + /// + /// Handles the downloading and display of an image from a URL using a RawImage. + /// + public class ImageUrlObject : MonoBehaviour + { + [SerializeField] private RawImage m_Image; + + private void OnDisable() + { + m_Image.texture = null; + } + + /// + /// Downloads an image from the provided URL and assigns it to the RawImage. + /// If the download fails or the URL is invalid, the image is hidden. + /// + /// The URL of the image to download. + public async UniTask LoadUrl(string url) + { + if (m_Image == null || string.IsNullOrEmpty(url)) return; + + m_Image.gameObject.SetActive(false); + + using var request = UnityWebRequestTexture.GetTexture(url); + await request.SendWebRequest(); + + // Ensure m_Image wasn't destroyed during the async operation. + if (m_Image == null) return; + + if (request.result == UnityWebRequest.Result.Success) + { + var texture = ((DownloadHandlerTexture)request.downloadHandler).texture; + m_Image.texture = texture; + m_Image.gameObject.SetActive(true); + } + } + } +} \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/ImageUrlObject.cs.meta b/Assets/Shared/Scripts/ImageUrlObject.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/ImageUrlObject.cs.meta rename to Assets/Shared/Scripts/ImageUrlObject.cs.meta diff --git a/Assets/Shared/Scripts/Model/AssetsResponse.cs b/Assets/Shared/Scripts/Model/AssetsResponse.cs deleted file mode 100644 index 362b2727..00000000 --- a/Assets/Shared/Scripts/Model/AssetsResponse.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace HyperCasual.Runner -{ - [Serializable] - public class AssetsResponse - { - public List result; - public PageModel page; - } - - [Serializable] - public class AssetResponse - { - public AssetModel result; - } - - [Serializable] - public class AssetModel - { - public string token_id; - public string image; - public string name; - public string description; - public string contract_address; - public List attributes; - public string metadata_id; - public string balance; - public string contract_type; - } - - [Serializable] - public class AssetAttribute - { - public string display_type; - public string trait_type; - public string value; - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Model/AssetsResponse.cs.meta b/Assets/Shared/Scripts/Model/AssetsResponse.cs.meta deleted file mode 100644 index c9b33033..00000000 --- a/Assets/Shared/Scripts/Model/AssetsResponse.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 25f16da60f4cc49c2b1e41bfd7d3d519 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Shared/Scripts/Model/Config.cs b/Assets/Shared/Scripts/Model/Config.cs index b3886bc1..c7cb4ea1 100644 --- a/Assets/Shared/Scripts/Model/Config.cs +++ b/Assets/Shared/Scripts/Model/Config.cs @@ -5,8 +5,6 @@ public static class Config // public const string SERVER_URL = "https://sample-passport-unity-game-api.dev.immutable.com/fox"; public const string SERVER_URL = "http://localhost:6060"; - public const string SDK_API = "https://api.sandbox.immutable.com/v1/ts-sdk/v1"; - // public const string CLIENT_ID = "ZJL7JvetcDFBNDlgRs5oJoxuAUUl6uQj"; public const string CLIENT_ID = "2Ng38UmEg0Morz1xOQLtsDs72Wx8uyGL"; // Devnet // public const string CLIENT_ID = "UnB98ngnXIZIEJWGJOjVe1BpCx5ix7qc"; // WebGL @@ -33,7 +31,7 @@ public static class Config public const string CHAIN_NAME = "imtbl-zkevm-devnet"; public const string BASE_URL = "https://api.dev.immutable.com"; - public const int PAGE_SIZE = 10; + public const int PAGE_SIZE = 20; } public static class Contract diff --git a/Assets/Shared/Scripts/Model/ListOrderResponse.cs b/Assets/Shared/Scripts/Model/ListOrderResponse.cs deleted file mode 100644 index f1fdb268..00000000 --- a/Assets/Shared/Scripts/Model/ListOrderResponse.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace HyperCasual.Runner -{ - [Serializable] - public class ListOrderResponse - { - public List result; - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Model/ListOrderResponse.cs.meta b/Assets/Shared/Scripts/Model/ListOrderResponse.cs.meta deleted file mode 100644 index 2a669e53..00000000 --- a/Assets/Shared/Scripts/Model/ListOrderResponse.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 08cda570293924a93912c983f8e611a6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Shared/Scripts/Model/ListingsResponse.cs b/Assets/Shared/Scripts/Model/ListingsResponse.cs index f4af5475..a484373f 100644 --- a/Assets/Shared/Scripts/Model/ListingsResponse.cs +++ b/Assets/Shared/Scripts/Model/ListingsResponse.cs @@ -9,18 +9,11 @@ public class ListingResponse public OldListing result; } - [Serializable] - public class ListingsResponse - { - public List result; - } - [Serializable] public class OldListing { public string id; public ListingStatus status; - public List buy; } [Serializable] @@ -28,10 +21,4 @@ public class ListingStatus { public string name; } - - [Serializable] - public class ListingBuy - { - public string amount; - } } \ No newline at end of file diff --git a/Assets/Shared/Scripts/Model/OrdersResponse.cs b/Assets/Shared/Scripts/Model/OrdersResponse.cs deleted file mode 100644 index 93cc27bb..00000000 --- a/Assets/Shared/Scripts/Model/OrdersResponse.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; - -namespace HyperCasual.Runner -{ - [Serializable] - public class OrderResponse - { - public OrderModel result; - } - - [Serializable] - public class OrderModel - { - public string id; - public string account_address; - public Buy[] buy; - public Sell[] sell; - public Fee[] fees; - public AssetModel asset; // TODO remove - public ListingStatus status; - } - - [Serializable] - public class Buy - { - public string amount; - } - - [Serializable] - public class Sell - { - public string contract_address; - public string token_id; - } - - [Serializable] - public class Fee - { - public string amount; - public string recipient_address; - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Model/OrdersResponse.cs.meta b/Assets/Shared/Scripts/Model/OrdersResponse.cs.meta deleted file mode 100644 index a30b7598..00000000 --- a/Assets/Shared/Scripts/Model/OrdersResponse.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5b4c25c7430ed44ac9c13d2527a1fe61 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Shared/Scripts/Model/PageModel.cs b/Assets/Shared/Scripts/Model/PageModel.cs deleted file mode 100644 index 99a8861d..00000000 --- a/Assets/Shared/Scripts/Model/PageModel.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace HyperCasual.Runner -{ - [Serializable] - public class PageModel - { - public string previous_cursor; - public string next_cursor; - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Model/PageModel.cs.meta b/Assets/Shared/Scripts/Model/PageModel.cs.meta deleted file mode 100644 index b7dfcff9..00000000 --- a/Assets/Shared/Scripts/Model/PageModel.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 249086493b631445592739a3ac7da434 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Shared/Scripts/UI/AssetDetailsView.cs b/Assets/Shared/Scripts/UI/AssetDetailsView.cs index 1e45cf94..e69de29b 100644 --- a/Assets/Shared/Scripts/UI/AssetDetailsView.cs +++ b/Assets/Shared/Scripts/UI/AssetDetailsView.cs @@ -1,536 +0,0 @@ -#nullable enable -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net.Http; -using System.Numerics; -using Cysharp.Threading.Tasks; -using HyperCasual.Core; -using Immutable.Orderbook.Api; -using Immutable.Orderbook.Client; -using Immutable.Orderbook.Model; -using Immutable.Passport; -using Immutable.Passport.Model; -using Immutable.Search.Api; -using Immutable.Search.Model; -using Newtonsoft.Json; -using TMPro; -using UnityEngine; -using ApiException = Immutable.Search.Client.ApiException; - -namespace HyperCasual.Runner -{ - public class AssetDetailsView : View - { - [SerializeField] private HyperCasualButton m_BackButton; - [SerializeField] private BalanceObject m_Balance; - - [SerializeField] private ImageUrlObject m_Image; - [SerializeField] private TextMeshProUGUI m_NameText; - [SerializeField] private TextMeshProUGUI m_DescriptionText; - - // Market - [SerializeField] private GameObject m_MarketContainer; - [SerializeField] private TextMeshProUGUI m_FloorPriceText; - - [SerializeField] private TextMeshProUGUI m_LastTradePriceText; - - // Details - [SerializeField] private TextMeshProUGUI m_TokenIdText; - [SerializeField] private TextMeshProUGUI m_CollectionText; - [SerializeField] private TextMeshProUGUI m_ContractTypeText; - - // Attributes - [SerializeField] private GameObject m_AttributesContainer; - [SerializeField] private Transform m_AttributesListParent; - [SerializeField] private AttributeView m_AttributeObj; - - // Listing - [SerializeField] private GameObject m_ListingContainer; - [SerializeField] private TextMeshProUGUI m_AmountText; - [SerializeField] private HyperCasualButton m_SellButton; - [SerializeField] private HyperCasualButton m_CancelButton; - [SerializeField] private GameObject m_Progress; - - [SerializeField] private CustomDialog m_CustomDialog; - - private readonly List m_Attributes = new(); - - private readonly SearchApi m_SearchApi; - private readonly OrderbookApi m_TsApi; - - private InventoryScreen.AssetType m_Type; - private AssetModel m_Asset; - private OldListing? m_Listing; - - public AssetDetailsView() - { - var tsConfig = new Configuration(); - tsConfig.BasePath = Config.BASE_URL; - m_TsApi = new OrderbookApi(tsConfig); - - var searchConfig = new Immutable.Search.Client.Configuration(); - searchConfig.BasePath = Config.BASE_URL; - m_SearchApi = new SearchApi(searchConfig); - } - - private void OnEnable() - { - m_AttributeObj.gameObject.SetActive(false); // Disable the template attribute object - - m_BackButton.RemoveListener(OnBackButtonClick); - m_BackButton.AddListener(OnBackButtonClick); - m_SellButton.RemoveListener(OnSellButtonClicked); - m_SellButton.AddListener(OnSellButtonClicked); - m_CancelButton.RemoveListener(OnCancelButtonClicked); - m_CancelButton.AddListener(OnCancelButtonClicked); - - // Gets the player's balance - m_Balance.UpdateBalance(); - } - - /// - /// Cleans up data - /// - private void OnDisable() - { - m_NameText.text = ""; - m_DescriptionText.text = ""; - m_TokenIdText.text = ""; - m_CollectionText.text = ""; - m_ContractTypeText.text = ""; - m_AmountText.text = ""; - m_FloorPriceText.text = ""; - m_LastTradePriceText.text = ""; - - m_Asset = null; - ClearAttributes(); - } - - /// - /// Initialises the UI based on the asset. - /// - /// The asset to display. - public async void Initialise(InventoryScreen.AssetType assetType, AssetModel asset) - { - m_Type = assetType; - m_Asset = asset; - - m_NameText.text = m_Asset.contract_type switch - { - "ERC721" => $"{m_Asset.name} #{m_Asset.token_id}", - "ERC1155" => $"{m_Asset.name} x{m_Asset.balance}", - _ => m_NameText.text - }; - - m_DescriptionText.text = m_Asset.description; - m_DescriptionText.gameObject.SetActive(!string.IsNullOrEmpty(m_Asset.description)); - - m_TokenIdText.text = $"Token ID: {m_Asset.token_id}"; - m_CollectionText.text = $"Collection: {m_Asset.contract_address}"; - m_ContractTypeText.text = $"Contract type: {m_Asset.contract_type}"; - - // Clear existing attributes - ClearAttributes(); - - // Download and display the image - m_Image.LoadUrl(m_Asset.image); - - switch (m_Type) - { - case InventoryScreen.AssetType.Skin: - // Populate attributes - foreach (var a in m_Asset.attributes) - { - NFTMetadataAttribute attribute = new(traitType: a.trait_type, - value: new NFTMetadataAttributeValue(a.value)); - var newAttribute = Instantiate(m_AttributeObj, m_AttributesListParent); - newAttribute.gameObject.SetActive(true); - newAttribute.Initialise(attribute); - m_Attributes.Add(newAttribute); - } - - // Check if asset is listed - m_Listing = await GetActiveListingId(); - m_SellButton.gameObject.SetActive(m_Listing == null); - m_CancelButton.gameObject.SetActive(m_Listing != null); - - // Price if it's listed - m_AmountText.text = "-"; - if (m_Listing != null) - { - var amount = m_Listing.buy[0].amount; - var quantity = (decimal)BigInteger.Parse(amount) / (decimal)BigInteger.Pow(10, 18); - m_AmountText.text = $"{quantity} IMR"; - } - else - { - m_AmountText.text = "Not listed"; - } - - m_FloorPriceText.text = "Floor price: -"; - m_LastTradePriceText.text = "Last trade price: -"; - GetMarketData(); - break; - case InventoryScreen.AssetType.Powerups: - break; - } - - m_ListingContainer.SetActive(m_Type == InventoryScreen.AssetType.Skin); - m_AttributesContainer.SetActive(m_Type == InventoryScreen.AssetType.Skin); - m_MarketContainer.SetActive(m_Type == InventoryScreen.AssetType.Skin); - } - - private async void GetMarketData() - { - try - { - var response = await m_SearchApi.QuotesForStacksAsync(Config.CHAIN_NAME, m_Asset.contract_address, - new List { Guid.Parse(m_Asset.metadata_id) }); - if (response.Result.Count > 0) - { - var quote = response.Result[0]; - var market = quote.MarketStack; - - if (market?.FloorListing != null) - { - var quantity = (decimal)BigInteger.Parse(market.FloorListing.PriceDetails.Amount.Value) / - (decimal)BigInteger.Pow(10, 18); - m_FloorPriceText.text = $"Floor price: {quantity} IMR"; - } - else - { - m_FloorPriceText.text = "Floor price: N/A"; - } - - if (market?.LastTrade?.PriceDetails?.Count > 0) - { - var quantity = (decimal)BigInteger.Parse(market.LastTrade.PriceDetails[0].Amount.Value) / - (decimal)BigInteger.Pow(10, 18); - m_LastTradePriceText.text = $"Last trade price: {quantity} IMR"; - } - else - { - m_LastTradePriceText.text = "Last trade price: N/A"; - } - } - } - catch (ApiException e) - { - Debug.LogError("Exception when calling: " + e.Message); - Debug.LogError("Status Code: " + e.ErrorCode); - Debug.LogError(e.StackTrace); - } - catch (Exception ex) - { - Debug.Log($"Failed to get market data: {ex.Message}"); - } - } - - // TODO not required one we have the NFT search endpoint - private async UniTask GetActiveListingId() - { - try - { - using var client = new HttpClient(); - var url = - $"{Config.BASE_URL}/v1/chains/{Config.CHAIN_NAME}/orders/listings?sell_item_contract_address={m_Asset.contract_address}&sell_item_token_id={m_Asset.token_id}&status=ACTIVE"; - Debug.Log($"GetActiveListingId URL: {url}"); - - var response = await client.GetAsync(url); - if (response.IsSuccessStatusCode) - { - var responseBody = await response.Content.ReadAsStringAsync(); - var listingResponse = JsonUtility.FromJson(responseBody); - - // Check if the listing exists - if (listingResponse.result.Count > 0 && listingResponse.result[0].status.name == "ACTIVE") - return listingResponse.result[0]; - } - } - catch (Exception ex) - { - Debug.Log($"Failed to check sale status: {ex.Message}"); - } - - return null; - } - - /// - /// Handles the click event for the sell button. - /// - private async void OnSellButtonClicked() - { - var (result, price) = await m_CustomDialog.ShowDialog( - $"List {m_Asset.name} for sale", - "Enter your price below (in IMR):", - "Confirm", - "Cancel", - true - ); - - if (result) - { - m_SellButton.gameObject.SetActive(false); - m_Progress.gameObject.SetActive(true); - - var amount = Math.Floor(decimal.Parse(price) * (decimal)BigInteger.Pow(10, 18)); - - var listingId = await Sell($"{amount}"); - Debug.Log($"Sell complete: Listing ID: {listingId}"); - - m_SellButton.gameObject.SetActive(listingId == null); - m_CancelButton.gameObject.SetActive(listingId != null); - m_AmountText.text = listingId != null ? $"{price} IMR" : "Not listed"; - m_Progress.gameObject.SetActive(false); - } - } - - /// - /// Gets the details for the listing - /// - private async UniTask GetListing(string listingId) // TODO To replace with get stack by ID endpoint - { - try - { - using var client = new HttpClient(); - var url = $"{Config.BASE_URL}/v1/chains/{Config.CHAIN_NAME}/orders/listings/{listingId}"; - Debug.Log($"Get listing URL: {url}"); - - var response = await client.GetAsync(url); - if (response.IsSuccessStatusCode) - { - var responseBody = await response.Content.ReadAsStringAsync(); - var orderResponse = JsonUtility.FromJson(responseBody); - - return new Listing( - orderResponse.result.id, - new PriceDetails - ( - new PriceDetailsToken(new ERC20Token(symbol: "IMR", contractAddress: Contract.TOKEN, - decimals: 18)), - new PaymentAmount(orderResponse.result.buy[0].amount, orderResponse.result.buy[0].amount), - new PaymentAmount(orderResponse.result.buy[0].amount, - orderResponse.result.buy[0].amount), // Mocked - orderResponse.result.fees.Select(fee => new Immutable.Search.Model.Fee( - fee.amount, Immutable.Search.Model.Fee.TypeEnum.ROYALTY, fee.recipient_address)) - .ToList() - ), - orderResponse.result.sell[0].token_id, - orderResponse.result.account_address, - "1" - ); - } - else - { - var responseBody = await response.Content.ReadAsStringAsync(); - Debug.Log($"Failed to get listing: {responseBody}"); - } - } - catch (Exception ex) - { - Debug.Log($"Failed to get listing: {ex.Message}"); - } - - return null; - } - - private async UniTask PrepareListing( - string nftTokenAddress, string tokenId, string price, string erc20TokenAddress) - { - // Define the NFT to sell, using its contract address and token ID - var nft = new ERC721Item(nftTokenAddress, tokenId); - - // Define the ERC20 token that the buyer will use to purchase the NFT - var buy = new ERC20Item(price, erc20TokenAddress); - - // Call the Orderbook function to prepare the listing for sale - return await m_TsApi.PrepareListingAsync( - new PrepareListingRequest - ( - makerAddress: SaveManager.Instance.WalletAddress, - sell: new PrepareListingRequestSell(nft), - buy: new PrepareListingRequestBuy(buy) - )); - } - - private async UniTask SignAndSubmitApproval(PrepareListing200Response prepareListingResponse) - { - var transactionAction = prepareListingResponse.Actions.FirstOrDefault(action => - ReferenceEquals(action.ActualInstance, typeof(TransactionAction))); - // Send approval transaction if it is required - if (transactionAction != null) - { - var tx = transactionAction.GetTransactionAction(); - var transactionResponse = await Passport.Instance.ZkEvmSendTransactionWithConfirmation( - new TransactionRequest - { - to = tx.PopulatedTransactions.To, - data = tx.PopulatedTransactions.Data, - value = "0" - }); - - if (transactionResponse.status != "1") throw new Exception("Failed to sign and submit approval"); - } - } - - private async UniTask SignListing(PrepareListing200Response prepareListingResponse) - { - var signableAction = - prepareListingResponse.Actions.FirstOrDefault(action => action.GetSignableAction() != null); - - if (signableAction == null) throw new Exception("No listing to sign"); - - var message = signableAction.GetSignableAction().Message; - - // Use Unity Passport package to sign typed data function to sign the listing payload - // return await Passport.Instance.ZkEvmSignTypedDataV4( - // JsonConvert.SerializeObject(message, Formatting.Indented)); - return ""; - } - - /// - /// Prepares the listing for the asset. - /// - /// The price of the asset in smallest unit. - /// The listing ID is asset was successfully listed - private async UniTask Sell(string price) - { - try - { - PrepareListing200Response prepareListingResponse = - await PrepareListing(m_Asset.contract_address, m_Asset.token_id, $"{price}", Contract.TOKEN); - - await SignAndSubmitApproval(prepareListingResponse); - - var signature = await SignListing(prepareListingResponse); - - var listingId = await ListAsset(signature, prepareListingResponse); - Debug.Log($"Listing ID: {listingId}"); - - await ConfirmListingStatus(listingId, "ACTIVE"); - - return listingId; - } - catch (Exception ex) - { - Debug.Log($"Failed to sell: {ex.Message}"); - Debug.LogError(ex.StackTrace); - await m_CustomDialog.ShowDialog("Failed to sell", ex.Message, "OK"); - } - - return null; - } - - /// - /// Finalises the listing of the asset. - /// - /// The signature for the listing. - /// The prepared listing data. - private async UniTask ListAsset(string signature, - PrepareListing200Response preparedListing) - { - var createListingResponse = await m_TsApi.CreateListingAsync( - new CreateListingRequest - ( - new List(), - preparedListing.OrderComponents, - preparedListing.OrderHash, - signature - )); - - return createListingResponse.Result.Id; - } - - /// - /// Cancels the listing of the asset. - /// - private async void OnCancelButtonClicked() - { - Debug.Log($"Cancel listing {m_Listing.id}"); - - m_CancelButton.gameObject.SetActive(false); - m_Progress.gameObject.SetActive(true); - - try - { - var request = new CancelOrdersOnChainRequest( - accountAddress: SaveManager.Instance.WalletAddress, - orderIds: new List { m_Listing.id }); - var response = await m_TsApi.CancelOrdersOnChainAsync(request); - - if (response?.CancellationAction.PopulatedTransactions.To != null) - { - var transactionResponse = await Passport.Instance.ZkEvmSendTransactionWithConfirmation( - new TransactionRequest - { - to = response.CancellationAction.PopulatedTransactions.To, // Immutable seaport contract - data = response.CancellationAction.PopulatedTransactions.Data, // fd9f1e10 cancel - value = "0" - }); - - if (transactionResponse.status == "1") - { - // Validate that listing has been cancelled - await ConfirmListingStatus(m_Listing.id, "CANCELLED"); - - // TODO update to use get stack bundle by stack ID endpoint instead - - m_SellButton.gameObject.SetActive(true); - m_Progress.gameObject.SetActive(false); - m_AmountText.text = "Not listed"; - - return; - } - } - - m_Progress.gameObject.SetActive(false); - m_CancelButton.gameObject.SetActive(true); - await m_CustomDialog.ShowDialog("Error", "Failed to cancel listing", "OK"); - } - catch (Exception ex) - { - Debug.LogException(ex); - m_Progress.gameObject.SetActive(false); - m_CancelButton.gameObject.SetActive(true); - await m_CustomDialog.ShowDialog("Error", "Failed to cancel listing", "OK"); - } - } - - /// - /// Polls the listing status until it transitions to the given status or the operation times out after 1 minute. - /// - private async UniTask ConfirmListingStatus(string listingId, string status) - { - Debug.Log($"Confirming listing {listingId} is {status}..."); - - var conditionMet = await PollingHelper.PollAsync( - $"{Config.BASE_URL}/v1/chains/imtbl-zkevm-devnet/orders/listings/{listingId}", - responseBody => - { - var listingResponse = JsonUtility.FromJson(responseBody); - m_Listing = listingResponse.result; - return listingResponse.result?.status.name == status; - }); - - if (conditionMet) - await m_CustomDialog.ShowDialog("Success", $"Listing is {status.ToLower()}.", "OK"); - else - await m_CustomDialog.ShowDialog("Error", $"Failed to confirm if listing is {status.ToLower()}.", "OK"); - } - - private void OnBackButtonClick() - { - UIManager.Instance.GoBack(); - } - - /// - /// Removes all the attribute views - /// - private void ClearAttributes() - { - foreach (var attribute in m_Attributes) Destroy(attribute.gameObject); - m_Attributes.Clear(); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/AssetListObject.cs b/Assets/Shared/Scripts/UI/AssetListObject.cs deleted file mode 100644 index d9b96d4e..00000000 --- a/Assets/Shared/Scripts/UI/AssetListObject.cs +++ /dev/null @@ -1,103 +0,0 @@ -using System; -using System.Net.Http; -using System.Numerics; -using Cysharp.Threading.Tasks; -using TMPro; -using UnityEngine; -using UnityEngine.Serialization; - -namespace HyperCasual.Runner -{ - /// - /// Represents an asset in the player's inventory - /// - public class AssetListObject : MonoBehaviour - { - [SerializeField] private TextMeshProUGUI m_NameText; - [SerializeField] private TextMeshProUGUI m_TokenIdText; - [SerializeField] private TextMeshProUGUI m_AmountText; - [SerializeField] private ImageUrlObject m_Image; - - private AssetModel m_Asset; - - /// - /// Sets up the inventory list and fetches the player's assets. - /// - private void OnEnable() - { - UpdateData(); - } - - /// - /// Initialises the asset object with relevant data and updates the UI. - /// - public void Initialise(AssetModel asset) - { - m_Asset = asset; - UpdateData(); - } - - /// - /// Updates the text fields with asset data. - /// - private async void UpdateData() - { - if (m_Asset == null) return; - - m_NameText.text = m_Asset.contract_type switch - { - "ERC721" => $"{m_Asset.name} #{m_Asset.token_id}", - "ERC1155" => $"{m_Asset.name} x{m_Asset.balance}", - _ => m_NameText.text - }; - - m_AmountText.gameObject.SetActive(m_Asset.contract_type == "ERC721"); - m_AmountText.text = "-"; - - OldListing listing = await GetActiveListingId(); - if (listing != null) - { - var amount = listing.buy[0].amount; - var quantity = (decimal)BigInteger.Parse(amount) / (decimal)BigInteger.Pow(10, 18); - m_AmountText.text = $"{quantity} IMR"; - } - else - { - m_AmountText.text = "Not listed"; - } - -#pragma warning disable CS4014 - m_Image.LoadUrl(m_Asset.image); -#pragma warning restore CS4014 - } - - // TODO to remove - private async UniTask GetActiveListingId() - { - try - { - using var client = new HttpClient(); - var url = - $"{Config.BASE_URL}/v1/chains/{Config.CHAIN_NAME}/orders/listings?sell_item_contract_address={m_Asset.contract_address}&sell_item_token_id={m_Asset.token_id}&status=ACTIVE"; - Debug.Log($"GetActiveListingId URL: {url}"); - - var response = await client.GetAsync(url); - if (response.IsSuccessStatusCode) - { - var responseBody = await response.Content.ReadAsStringAsync(); - var listingResponse = JsonUtility.FromJson(responseBody); - - // Check if the listing exists - if (listingResponse.result.Count > 0 && listingResponse.result[0].status.name == "ACTIVE") - return listingResponse.result[0]; - } - } - catch (Exception ex) - { - Debug.Log($"Failed to check sale status: {ex.Message}"); - } - - return null; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/AssetListingObject.cs b/Assets/Shared/Scripts/UI/AssetListingObject.cs deleted file mode 100644 index a1395fc0..00000000 --- a/Assets/Shared/Scripts/UI/AssetListingObject.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using Cysharp.Threading.Tasks; -using HyperCasual.Core; -using Immutable.Search.Model; -using TMPro; -using UnityEngine; - -namespace HyperCasual.Runner -{ - public class AssetListingObject : View - { - [SerializeField] private TextMeshProUGUI m_TokenIdText; - [SerializeField] private HyperCasualButton m_CancelButton; - [SerializeField] private GameObject m_Progress; - private Listing m_Asset; - private Func> m_OnCancel; - - private async void OnEnable() - { - } - - /// - /// Cleans up data - /// - private void OnDisable() - { - m_TokenIdText.text = ""; - - m_Asset = null; - } - - /// - /// Initialises the UI based on the order - /// - public async void Initialise(Listing listing, Func> onCancel) - { - m_Asset = listing; - m_OnCancel = onCancel; - m_TokenIdText.text = $"Token ID: {m_Asset.TokenId}"; - - // Hide progress - m_Progress.SetActive(false); - - // Set listener to button - m_CancelButton.RemoveListener(OnCancelButtonClick); - m_CancelButton.AddListener(OnCancelButtonClick); - } - - /// - /// Handles the cancel button click event. - /// - private async void OnCancelButtonClick() - { - m_CancelButton.gameObject.SetActive(false); - m_Progress.SetActive(true); - - var success = await m_OnCancel(m_Asset); - - m_CancelButton.gameObject.SetActive(!success); - m_Progress.SetActive(false); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/AssetListingObject.cs.meta b/Assets/Shared/Scripts/UI/AssetListingObject.cs.meta deleted file mode 100644 index 133205b3..00000000 --- a/Assets/Shared/Scripts/UI/AssetListingObject.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0eb6f46e02d544423ab1dfdaae0287c2 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Shared/Scripts/UI/AssetNotListedObject.cs b/Assets/Shared/Scripts/UI/AssetNotListedObject.cs deleted file mode 100644 index 9735aa5f..00000000 --- a/Assets/Shared/Scripts/UI/AssetNotListedObject.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using Cysharp.Threading.Tasks; -using HyperCasual.Core; -using Immutable.Search.Model; -using TMPro; -using UnityEngine; - -namespace HyperCasual.Runner -{ - public class AssetNotListedObject : View - { - [SerializeField] private TextMeshProUGUI m_TokenIdText; - [SerializeField] private HyperCasualButton m_SellButton; - [SerializeField] private GameObject m_Progress; - private Listing m_Asset; - private Func> m_OnSell; - - private async void OnEnable() - { - } - - /// - /// Cleans up data - /// - private void OnDisable() - { - m_TokenIdText.text = ""; - - m_Asset = null; - } - - /// - /// Initialises the UI based on the order - /// - public async void Initialise(Listing listing, Func> onSell) - { - m_Asset = listing; - m_OnSell = onSell; - m_TokenIdText.text = $"Token ID: {m_Asset.TokenId}"; - - // Hide progress - m_Progress.SetActive(false); - - // Set listener to button - m_SellButton.RemoveListener(OnSellButtonClick); - m_SellButton.AddListener(OnSellButtonClick); - } - - /// - /// Handles the sell button click event. - /// - private async void OnSellButtonClick() - { - m_SellButton.gameObject.SetActive(false); - m_Progress.SetActive(true); - - var success = await m_OnSell(m_Asset); - - m_SellButton.gameObject.SetActive(!success); - m_Progress.SetActive(false); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/AssetNotListedObject.cs.meta b/Assets/Shared/Scripts/UI/AssetNotListedObject.cs.meta deleted file mode 100644 index b667d1cf..00000000 --- a/Assets/Shared/Scripts/UI/AssetNotListedObject.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: cac47b041ba4a47daa1ef34ec139efbd -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Shared/Scripts/UI/AttributeView.cs b/Assets/Shared/Scripts/UI/AttributeView.cs index c1192b9c..80d080ad 100644 --- a/Assets/Shared/Scripts/UI/AttributeView.cs +++ b/Assets/Shared/Scripts/UI/AttributeView.cs @@ -1,4 +1,4 @@ -using Immutable.Search.Model; +using Immutable.Api.Model; using TMPro; using UnityEngine; diff --git a/Assets/Shared/Scripts/UI/ImageUrlObject.cs b/Assets/Shared/Scripts/UI/ImageUrlObject.cs deleted file mode 100644 index 9f4e4d4b..00000000 --- a/Assets/Shared/Scripts/UI/ImageUrlObject.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Cysharp.Threading.Tasks; -using UnityEngine; -using UnityEngine.Networking; -using UnityEngine.UI; - -namespace HyperCasual.Runner -{ - public class ImageUrlObject : MonoBehaviour - { - [SerializeField] private RawImage m_Image; - - private void OnDisable() - { - m_Image.texture = null; - } - - /// - /// Downloads and displays the image from the given URL. - /// - public async UniTask LoadUrl(string url) - { - m_Image.gameObject.SetActive(false); - - if (string.IsNullOrEmpty(url)) return; - - using (var request = UnityWebRequestTexture.GetTexture(url)) - { - await request.SendWebRequest(); - - if (m_Image == null) return; - - if (request.result == UnityWebRequest.Result.Success) - { - m_Image.texture = ((DownloadHandlerTexture)request.downloadHandler).texture; - m_Image.gameObject.SetActive(true); - } - else - { - m_Image.gameObject.SetActive(false); - } - } - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/Inventory.meta b/Assets/Shared/Scripts/UI/Inventory.meta new file mode 100644 index 00000000..f9428044 --- /dev/null +++ b/Assets/Shared/Scripts/UI/Inventory.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: e23faa0a9f1f4baea4283ebcb338dffa +timeCreated: 1728853307 \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/Inventory/InventoryAssetDetailsView.cs b/Assets/Shared/Scripts/UI/Inventory/InventoryAssetDetailsView.cs new file mode 100644 index 00000000..67c84546 --- /dev/null +++ b/Assets/Shared/Scripts/UI/Inventory/InventoryAssetDetailsView.cs @@ -0,0 +1,309 @@ +#nullable enable +using System; +using System.Collections.Generic; +using System.Numerics; +using Cysharp.Threading.Tasks; +using HyperCasual.Core; +using Immutable.Api.Model; +using TMPro; +using UnityEngine; + +namespace HyperCasual.Runner +{ + public class InventoryAssetDetailsView : View + { + [SerializeField] private HyperCasualButton m_BackButton; + [SerializeField] private BalanceObject m_Balance; + + [SerializeField] private ImageUrlObject m_Image; + [SerializeField] private TextMeshProUGUI m_NameText; + [SerializeField] private TextMeshProUGUI m_DescriptionText; + + [SerializeField] private TextMeshProUGUI m_FloorPriceText; + [SerializeField] private TextMeshProUGUI m_LastTradePriceText; + + [SerializeField] private TextMeshProUGUI m_TokenIdText; + [SerializeField] private TextMeshProUGUI m_CollectionText; + [SerializeField] private TextMeshProUGUI m_ContractTypeText; + + [SerializeField] private Transform m_AttributesListParent; + [SerializeField] private AttributeView m_AttributeObj; + + [SerializeField] private TextMeshProUGUI m_AmountText; + [SerializeField] private HyperCasualButton m_SellButton; + [SerializeField] private HyperCasualButton m_CancelButton; + [SerializeField] private GameObject m_Progress; + + [SerializeField] private CustomDialog m_CustomDialog; + + private readonly List m_Attributes = new(); + + private NFTBundle? m_Asset; + private string? m_ListingId; + + private void OnEnable() + { + m_AttributeObj.gameObject.SetActive(false); // Disable template attribute object + + SetupButtonListeners(); + m_Balance.UpdateBalance(); // Get player balance + } + + /// + /// Setups up listeners for UI buttons. + /// + private void SetupButtonListeners() + { + m_BackButton.RemoveListener(OnBackButtonClick); + m_BackButton.AddListener(OnBackButtonClick); + + m_SellButton.RemoveListener(OnSellButtonClicked); + m_SellButton.AddListener(OnSellButtonClicked); + + m_CancelButton.RemoveListener(OnCancelButtonClicked); + m_CancelButton.AddListener(OnCancelButtonClicked); + } + + /// + /// Resets UI elements to their default states. + /// + private void ResetUI() + { + m_NameText.text = ""; + m_DescriptionText.text = ""; + m_TokenIdText.text = ""; + m_CollectionText.text = ""; + m_ContractTypeText.text = ""; + m_AmountText.text = ""; + m_FloorPriceText.text = ""; + m_LastTradePriceText.text = ""; + } + + /// + /// Initialises the asset details view based on the provided asset. + /// + /// The NFT asset to display. + public async void Initialise(NFTBundle asset) + { + m_Asset = asset; + + var nft = asset.NftWithStack; + + m_NameText.text = nft.ContractType.ToUpper() switch + { + "ERC721" => $"{nft.Name} #{nft.TokenId}", + "ERC1155" => $"{nft.Name} x{nft.Balance}", + _ => nft.Name + }; + + m_DescriptionText.text = nft.Description; + m_DescriptionText.gameObject.SetActive(!string.IsNullOrEmpty(nft.Description)); + + m_TokenIdText.text = $"Token ID: {nft.TokenId}"; + m_CollectionText.text = $"Collection: {nft.ContractAddress}"; + m_ContractTypeText.text = $"Contract type: {nft.ContractType.ToUpper()}"; + + ClearAttributes(); + AddAttributes(asset.NftWithStack.Attributes); + + SetListingState(); + + DisplayMarketData(); + + await LoadAssetImage(); + } + + /// + /// Adds attributes from the asset to the UI. + /// + private void AddAttributes(IEnumerable? attributes) + { + foreach (var attribute in attributes ?? Array.Empty()) + { + var attributeView = Instantiate(m_AttributeObj, m_AttributesListParent); + attributeView.gameObject.SetActive(true); + attributeView.Initialise(attribute); + m_Attributes.Add(attributeView); + } + } + + /// + /// Sets the listing state based on the asset's listing data. + /// + private void SetListingState() + { + m_ListingId = m_Asset!.Listings.Count > 0 ? m_Asset.Listings[0].ListingId : null; + m_SellButton.gameObject.SetActive(m_ListingId == null); + m_CancelButton.gameObject.SetActive(m_ListingId != null); + + SetListingPrice(); + } + + /// + /// Sets the listing price text based on the asset's contract type. + /// + private void SetListingPrice() + { + if (m_ListingId == null) + { + m_AmountText.text = "Not listed"; + return; + } + + var listing = m_Asset!.Listings[0]; + var amount = BigInteger.Parse(listing.PriceDetails.Amount.Value); + var quantity = (decimal)amount / (decimal) BigInteger.Pow(10, 18); + + m_AmountText.text = m_Asset!.NftWithStack.ContractType.ToUpper() switch + { + "ERC721" => $"{quantity} IMR", + "ERC1155" => $"{listing.Amount} for {quantity} IMR", + _ => m_AmountText.text + }; + } + + /// + /// Displays market data such as floor and last trade prices. + /// + private void DisplayMarketData() + { + var floorListing = m_Asset!.Market?.FloorListing; + m_FloorPriceText.text = floorListing != null + ? $"Floor price: {GetQuantity(floorListing.PriceDetails.Amount.Value)} IMR" + : "Floor price: N/A"; + + var lastTrade = m_Asset.Market?.LastTrade?.PriceDetails?[0]; + m_LastTradePriceText.text = lastTrade != null + ? $"Last trade price: {GetQuantity(lastTrade.Amount.Value)} IMR" + : "Last trade price: N/A"; + } + + /// + /// Converts a raw token value to decimal. + /// + private static decimal GetQuantity(string value) => + (decimal)BigInteger.Parse(value) / (decimal )BigInteger.Pow(10, 18); + + /// + /// Loads the asset image asynchronously. + /// + private async UniTask LoadAssetImage() => + await m_Image.LoadUrl(m_Asset!.NftWithStack.Image); + + /// + /// Handles the sell button click event. + /// + private async void OnSellButtonClicked() + { + if (m_Asset == null) return; + + var (confirmedPrice, price) = await m_CustomDialog.ShowDialog( + $"List {m_Asset.NftWithStack.Name} for sale", + "Enter your price below (in IMR):", + "Confirm", + "Cancel", + true + ); + + if (!confirmedPrice) return; + + var normalisedPrice = Math.Floor(decimal.Parse(price) * (decimal)BigInteger.Pow(10, 18)); + var amountToSell = "1"; + + if (m_Asset.NftWithStack.ContractType.ToUpper() == ERC1155Item.TypeEnum.ERC1155.ToString()) + { + var (confirmedAmount, amount) = await m_CustomDialog.ShowDialog( + $"How many {m_Asset.NftWithStack.Name} would you like to sell?", + "Enter the amount below:", + "Confirm", + "Cancel", + true + ); + + if (!confirmedAmount) return; + amountToSell = amount; + } + + m_SellButton.gameObject.SetActive(false); + m_Progress.gameObject.SetActive(true); + + try + { + m_ListingId = await OrderbookManager.Instance.CreateListing( + contractAddress: m_Asset.NftWithStack.ContractAddress, + contractType: m_Asset.NftWithStack.ContractType, + tokenId: m_Asset.NftWithStack.TokenId, + price: $"{normalisedPrice}", + amountToSell: amountToSell + ); + + Debug.Log($"Sale complete: Listing ID: {m_ListingId}"); + + m_SellButton.gameObject.SetActive(m_ListingId == null); + m_CancelButton.gameObject.SetActive(m_ListingId != null); + + m_AmountText.text = m_ListingId == null ? "Not listed" : + m_Asset!.NftWithStack.ContractType.ToUpper() switch + { + "ERC721" => $"{price} IMR", + "ERC1155" => $"{amountToSell} for {price} IMR", + _ => m_AmountText.text + }; + + m_Progress.gameObject.SetActive(false); + } + catch (Exception ex) + { + m_SellButton.gameObject.SetActive(true); + await HandleError(ex, "Failed to sell"); + } + } + + /// + /// Handles the click event of the cancel button. + /// + private async void OnCancelButtonClicked() + { + if (m_ListingId == null) return; + + m_CancelButton.gameObject.SetActive(false); + m_Progress.gameObject.SetActive(true); + + try + { + await OrderbookManager.Instance.CancelListing(m_ListingId); + + m_SellButton.gameObject.SetActive(true); + m_Progress.gameObject.SetActive(false); + m_AmountText.text = "Not listed"; + } + catch (Exception ex) + { + m_CancelButton.gameObject.SetActive(true); + await HandleError(ex, "Failed to cancel listing"); + } + } + + private async UniTask HandleError(Exception ex, string errorMessage) + { + Debug.LogException(ex); + m_Progress.gameObject.SetActive(false); + await m_CustomDialog.ShowDialog("Error", $"{errorMessage}: {ex.Message}", "OK"); + } + + private void OnBackButtonClick() => UIManager.Instance.GoBack(); + + private void ClearAttributes() + { + foreach (var attribute in m_Attributes) Destroy(attribute.gameObject); + m_Attributes.Clear(); + } + + private void OnDisable() + { + ResetUI(); + m_Asset = null; + ClearAttributes(); + } + } +} diff --git a/Assets/Shared/Scripts/UI/AssetDetailsView.cs.meta b/Assets/Shared/Scripts/UI/Inventory/InventoryAssetDetailsView.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/AssetDetailsView.cs.meta rename to Assets/Shared/Scripts/UI/Inventory/InventoryAssetDetailsView.cs.meta diff --git a/Assets/Shared/Scripts/UI/Inventory/InventoryListObject.cs b/Assets/Shared/Scripts/UI/Inventory/InventoryListObject.cs new file mode 100644 index 00000000..4a3d88a9 --- /dev/null +++ b/Assets/Shared/Scripts/UI/Inventory/InventoryListObject.cs @@ -0,0 +1,75 @@ +using System.Numerics; +using Immutable.Api.Model; +using TMPro; +using UnityEngine; + +namespace HyperCasual.Runner +{ + /// + /// Represents an inventory list item in the Inventory screen. + /// + public class InventoryListObject : MonoBehaviour + { + [SerializeField] private TextMeshProUGUI m_NameText; + [SerializeField] private TextMeshProUGUI m_TokenIdText; + [SerializeField] private TextMeshProUGUI m_AmountText; + [SerializeField] private ImageUrlObject m_Image; + + private NFTBundle m_NFT; + + private void OnEnable() + { + UpdateUI(); + } + + /// + /// Initialises the object with the given NFT data and updates the UI. + /// + /// The NFT bundle to display in the inventory. + public void Initialise(NFTBundle asset) + { + m_NFT = asset; + UpdateUI(); + } + + /// + /// Updates the UI fields with relevant NFT data. + /// + private void UpdateUI() + { + if (m_NFT == null) return; + + // Display the asset name based on its contract type. + m_NameText.text = m_NFT.NftWithStack.ContractType.ToUpper() switch + { + "ERC721" => $"{m_NFT.NftWithStack.Name} #{m_NFT.NftWithStack.TokenId}", + "ERC1155" => $"{m_NFT.NftWithStack.Name} x{m_NFT.NftWithStack.Balance}", + _ => m_NameText.text + }; + + // Display the price if listed, otherwise show "Not listed". + if (m_NFT.Listings.Count > 0) + { + var listing = m_NFT.Listings[0]; + var rawAmount = listing.PriceDetails.Amount.Value; + var quantity = (decimal)BigInteger.Parse(rawAmount) / (decimal)BigInteger.Pow(10, 18); + + m_AmountText.text = m_NFT.NftWithStack.ContractType.ToUpper() switch + { + "ERC721" => $"{quantity} IMR", + "ERC1155" => $"{listing.Amount} for {quantity} IMR", + _ => m_AmountText.text + }; + } + else + { + m_AmountText.text = "Not listed"; + } + + // Asynchronously load the asset's image. +#pragma warning disable CS4014 + m_Image.LoadUrl(m_NFT.NftWithStack.Image); +#pragma warning restore CS4014 + } + } +} \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/AssetListObject.cs.meta b/Assets/Shared/Scripts/UI/Inventory/InventoryListObject.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/AssetListObject.cs.meta rename to Assets/Shared/Scripts/UI/Inventory/InventoryListObject.cs.meta diff --git a/Assets/Shared/Scripts/UI/Inventory/InventoryScreen.cs b/Assets/Shared/Scripts/UI/Inventory/InventoryScreen.cs new file mode 100644 index 00000000..b0a50dde --- /dev/null +++ b/Assets/Shared/Scripts/UI/Inventory/InventoryScreen.cs @@ -0,0 +1,198 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Cysharp.Threading.Tasks; +using HyperCasual.Core; +using UnityEngine; +using TMPro; +using Immutable.Api.Client; +using Immutable.Api.Model; +using Immutable.Api.Api; + +namespace HyperCasual.Runner +{ + /// + /// Represents the Inventory screen displaying the player’s NFTs, such as skins and power-ups. + /// + public class InventoryScreen : View + { + public enum AssetType { Skin, Powerups } + + [SerializeField] private HyperCasualButton m_BackButton; + [SerializeField] private HyperCasualButton m_AddButton; + [SerializeField] private AbstractGameEvent m_BackEvent; + [SerializeField] private BalanceObject m_Balance; + [SerializeField] private TMP_Dropdown m_TypeDropdown; + [SerializeField] private InventoryListObject m_InventoryObj; + [SerializeField] private InfiniteScrollGridView m_ScrollView; + [SerializeField] private AddFunds m_AddFunds; + + private StacksApi m_StacksApi = new(new Configuration { BasePath = Config.BASE_URL }); + private AssetType m_Type = AssetType.Skin; + private readonly List m_Assets = new(); + private bool m_IsLoadingMore; + private Page m_Page; + + private void OnEnable() + { + m_InventoryObj.gameObject.SetActive(false); + ConfigureButtons(); + ConfigureFilters(); + + m_ScrollView.OnCreateItemView += OnCreateItemView; + + if (!m_Assets.Any()) LoadAssets(); + m_Balance.UpdateBalance(); + } + + /// + /// Configures the back and add buttons with their respective listeners. + /// + private void ConfigureButtons() + { + m_BackButton.RemoveListener(OnBackButtonClick); + m_BackButton.AddListener(OnBackButtonClick); + + m_AddButton.RemoveListener(OnAddFundsButtonClick); + m_AddButton.AddListener(OnAddFundsButtonClick); + } + + /// + /// Sets up the filter dropdown + /// + private void ConfigureFilters() + { + m_TypeDropdown.ClearOptions(); + m_TypeDropdown.AddOptions(Enum.GetNames(typeof(AssetType)).ToList()); + m_TypeDropdown.value = m_Type == AssetType.Skin ? 0 : 1; + + m_TypeDropdown.onValueChanged.AddListener(delegate + { + ResetInventory(); + m_Type = (AssetType)m_TypeDropdown.value; + LoadAssets(); + }); + } + + /// + /// Handles the creation of each item in the inventory list. + /// + /// The index of the asset in the list. + /// The game object representing the asset view. + private void OnCreateItemView(int index, GameObject item) + { + if (index >= m_Assets.Count) return; + + var asset = m_Assets[index]; + var itemComponent = item.GetComponent(); + itemComponent.Initialise(asset); + + var clickable = item.GetComponent(); + if (clickable != null) + { + clickable.ClearAllSubscribers(); + clickable.OnClick += () => + { + var view = UIManager.Instance.GetView(); + UIManager.Instance.Show(view); + view.Initialise(asset); + }; + } + + if (index >= m_Assets.Count - 8 && !m_IsLoadingMore) + LoadAssets(); + } + + /// + /// Loads the player's assets and adds them to the inventory view. + /// + private async void LoadAssets() + { + if (m_IsLoadingMore) return; + + m_IsLoadingMore = true; + + var assets = await GetAssets(); + if (assets.Any()) + { + m_Assets.AddRange(assets); + m_ScrollView.TotalItemCount = m_Assets.Count; + } + + m_IsLoadingMore = false; + } + + /// + /// Fetches the player’s NFTs from the API based on the selected asset type. + /// + /// A list of NFT bundles. + private async UniTask> GetAssets() + { + Debug.Log("Fetching assets..."); + + try + { + var nextCursor = m_Page?.NextCursor; + if (m_Page != null && string.IsNullOrEmpty(nextCursor)) + { + Debug.Log("No more assets to load."); + return new List(); + } + + var contractAddress = m_Type == AssetType.Skin ? Contract.SKIN : Contract.PACK; + + var result = await m_StacksApi.SearchNFTsAsync( + Config.CHAIN_NAME, + new List { contractAddress }, + SaveManager.Instance.WalletAddress, + onlyIncludeOwnerListings: true, + pageSize: Config.PAGE_SIZE, + pageCursor: nextCursor + ); + + m_Page = result.Page; + return result.Result; + } + catch (ApiException e) + { + Debug.LogError($"API error: {e.Message} (Status Code: {e.ErrorCode})"); + Debug.LogError(e.StackTrace); + } + catch (Exception ex) + { + Debug.LogError($"Error fetching NFTs: {ex.Message}"); + } + + return new List(); + } + + /// + /// Handles the back button click by resetting the view and raising the back event. + /// + private void OnBackButtonClick() + { + ResetInventory(); + m_BackEvent.Raise(); + } + + /// + /// Resets the inventory to its default state. + /// + private void ResetInventory() + { + m_Type = AssetType.Skin; + m_Assets.Clear(); + m_Page = null; + m_ScrollView.TotalItemCount = 0; + m_ScrollView.Clear(); + } + + /// + /// Handles the add funds button click by showing the add funds view. + /// + private void OnAddFundsButtonClick() + { + m_AddFunds.Show(); + } + } +} diff --git a/Assets/Shared/Scripts/UI/InventoryScreen.cs.meta b/Assets/Shared/Scripts/UI/Inventory/InventoryScreen.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/InventoryScreen.cs.meta rename to Assets/Shared/Scripts/UI/Inventory/InventoryScreen.cs.meta diff --git a/Assets/Shared/Scripts/UI/InventoryScreen.cs b/Assets/Shared/Scripts/UI/InventoryScreen.cs deleted file mode 100644 index 4ebda20b..00000000 --- a/Assets/Shared/Scripts/UI/InventoryScreen.cs +++ /dev/null @@ -1,247 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net.Http; -using Cysharp.Threading.Tasks; -using HyperCasual.Core; -using Immutable.Passport; -using UnityEngine; -using Xsolla.Core; -using TMPro; -using Immutable.Search.Client; -using Immutable.Search.Model; -using Immutable.Search.Api; - -namespace HyperCasual.Runner -{ - /// - /// The inventory view which displays the player's assets (e.g. skins). - /// - public class InventoryScreen : View - { - public enum AssetType - { - Skin, - Powerups - } - - [SerializeField] private HyperCasualButton m_BackButton; - [SerializeField] private HyperCasualButton m_AddButton; - [SerializeField] private AbstractGameEvent m_BackEvent; - [SerializeField] private BalanceObject m_Balance; - - [SerializeField] private TMP_Dropdown m_TypeDropdown; - - [SerializeField] private AssetListObject m_AssetObj; - [SerializeField] private Transform m_ListParent; - [SerializeField] private InfiniteScrollGridView m_ScrollView; - [SerializeField] private AddFunds m_AddFunds; - - private AssetType m_Type = AssetType.Skin; - - private readonly List m_Assets = new(); - - // Pagination - private bool m_IsLoadingMore; - private PageModel m_Page; - - /// - /// Sets up the inventory list and fetches the player's assets. - /// - private async void OnEnable() - { - // Hide asset template item - m_AssetObj.gameObject.SetActive(false); - - m_BackButton.RemoveListener(OnBackButtonClick); - m_BackButton.AddListener(OnBackButtonClick); - - m_AddButton.RemoveListener(OnAddFundsButtonClick); - m_AddButton.AddListener(OnAddFundsButtonClick); - - // Setup infinite scroll view and load assets - m_ScrollView.OnCreateItemView += OnCreateItemView; - if (m_Assets.Count == 0) LoadAssets(); - - m_Balance.UpdateBalance(); - - SetupFilters(); - } - - /// - /// Configures the dropdown filters - /// - private void SetupFilters() - { - var types = Enum.GetNames(typeof(AssetType)).ToList(); - - m_TypeDropdown.ClearOptions(); - m_TypeDropdown.AddOptions(types); - m_TypeDropdown.value = 0; - - m_TypeDropdown.onValueChanged.AddListener(delegate - { - Reset(); - int selectedIndex = m_TypeDropdown.value; - m_Type = (AssetType)Enum.GetValues(typeof(AssetType)).GetValue(selectedIndex); - LoadAssets(); - }); - } - - /// - /// Configures the asset list item view - /// - private void OnCreateItemView(int index, GameObject item) - { - if (index < m_Assets.Count) - { - var asset = m_Assets[index]; - - // Initialise the view with asset - var itemComponent = item.GetComponent(); - itemComponent.Initialise(asset); - // Set up click listener - var clickable = item.GetComponent(); - if (clickable != null) - { - clickable.ClearAllSubscribers(); - clickable.OnClick += () => - { - var view = UIManager.Instance.GetView(); - UIManager.Instance.Show(view); - view.Initialise(m_Type, asset); - }; - } - } - - // Load more assets if nearing the end of the list - if (index >= m_Assets.Count - 5 && !m_IsLoadingMore) - { - Debug.Log("Inventory Load more"); - LoadAssets(); - } - } - - /// - /// Loads assets and adds them to the scroll view. - /// - private async void LoadAssets() - { - if (m_IsLoadingMore) return; - - m_IsLoadingMore = true; - - var assets = await GetAssets(); - if (assets != null && assets.Count > 0) - { - m_Assets.AddRange(assets); - m_ScrollView.TotalItemCount = m_Assets.Count; - } - - m_IsLoadingMore = false; - } - - // Uses mocked stacks endpoint - private async UniTask> GetAssets() - { - Debug.Log("Fetching assets..."); - - var assets = new List(); - - try - { - var address = SaveManager.Instance.WalletAddress; - - if (string.IsNullOrEmpty(address)) - { - Debug.LogError("Could not get player's wallet"); - return assets; - } - - var contractAddress = m_Type switch - { - AssetType.Skin => Contract.SKIN, - AssetType.Powerups => Contract.PACK, - _ => Contract.SKIN - }; - var url = - $"{Config.BASE_URL}/v1/chains/{Config.CHAIN_NAME}/accounts/{address}/nfts?contract_address={contractAddress}&page_size={Config.PAGE_SIZE}"; - - // Pagination - if (!string.IsNullOrEmpty(m_Page?.next_cursor)) - { - url += $"&page_cursor={m_Page.next_cursor}"; - } - else if (m_Page != null && string.IsNullOrEmpty(m_Page?.next_cursor)) - { - Debug.Log("No more player assets to load"); - return assets; - } - - using var client = new HttpClient(); - var response = await client.GetAsync(url); - - if (response.IsSuccessStatusCode) - { - var responseBody = await response.Content.ReadAsStringAsync(); - Debug.Log($"Assets response: {responseBody}"); - - if (!string.IsNullOrEmpty(responseBody)) - { - var assetsResponse = JsonUtility.FromJson(responseBody); - assets = assetsResponse?.result ?? new List(); - - // Update pagination information - m_Page = assetsResponse?.page; - } - } - else - { - // TODO use dialogs - Debug.Log("Failed to fetch assets"); - } - } - catch (Exception ex) - { - Debug.Log($"Failed to fetch assets: {ex.Message}"); - } - - return assets; - } - - /// - /// Cleans up views and handles the back button click - /// - private void OnBackButtonClick() - { - Reset(); - - // Trigger back button event - m_BackEvent.Raise(); - } - - private void Reset() - { - // Reset default contract - m_Type = AssetType.Skin; - - // Clear the asset list - m_Assets.Clear(); - - // Reset pagination information - m_Page = null; - - // Reset the InfiniteScrollView - m_ScrollView.TotalItemCount = 0; - m_ScrollView.Clear(); - } - - /// - /// handles the add funds button click - /// - private void OnAddFundsButtonClick() - { - m_AddFunds.Show(); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/MainMenu.cs b/Assets/Shared/Scripts/UI/MainMenu.cs index f726a0b8..253819c9 100644 --- a/Assets/Shared/Scripts/UI/MainMenu.cs +++ b/Assets/Shared/Scripts/UI/MainMenu.cs @@ -40,6 +40,10 @@ public class MainMenu : View private async void OnEnable() { ShowLoading(true); + ShowLogoutButton(false); + ShowInventoryButton(false); + ShowMarketplaceButton(false); + ShowShopButton(false); m_Email.gameObject.SetActive(false); // Set listener to 'Start' button @@ -122,6 +126,7 @@ private async void OnLogoutButtonClick() ShowLogoutButton(false); ShowInventoryButton(false); ShowMarketplaceButton(false); + ShowShopButton(false); // Show loading ShowLoading(true); @@ -138,6 +143,7 @@ private async void OnLogoutButtonClick() ShowLogoutButton(false); ShowInventoryButton(false); ShowMarketplaceButton(false); + ShowShopButton(false); // Reset all other values SaveManager.Instance.Clear(); m_Email.text = ""; @@ -151,6 +157,7 @@ private async void OnLogoutButtonClick() ShowLogoutButton(true); ShowInventoryButton(true); ShowMarketplaceButton(true); + ShowShopButton(true); } // Hide loading diff --git a/Assets/Shared/Scripts/UI/Marketplace.meta b/Assets/Shared/Scripts/UI/Marketplace.meta new file mode 100644 index 00000000..3896bb93 --- /dev/null +++ b/Assets/Shared/Scripts/UI/Marketplace.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: cc096c1106404988844d24244bce07bc +timeCreated: 1728853313 \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/ListingObject.cs b/Assets/Shared/Scripts/UI/Marketplace/ListingObject.cs similarity index 55% rename from Assets/Shared/Scripts/UI/ListingObject.cs rename to Assets/Shared/Scripts/UI/Marketplace/ListingObject.cs index 2faf2886..1f97ffed 100644 --- a/Assets/Shared/Scripts/UI/ListingObject.cs +++ b/Assets/Shared/Scripts/UI/Marketplace/ListingObject.cs @@ -2,75 +2,80 @@ using System.Numerics; using Cysharp.Threading.Tasks; using HyperCasual.Core; -using Immutable.Search.Model; +using Immutable.Api.Model; using TMPro; using UnityEngine; namespace HyperCasual.Runner { + /// + /// Represents a listing object that displays asset data and handles user interaction with buy functionality + /// in the Marketplace Asset Details View. + /// public class ListingObject : View { - [SerializeField] private TextMeshProUGUI m_AmountText; + [SerializeField] private TextMeshProUGUI m_PriceText; [SerializeField] private TextMeshProUGUI m_TokenIdText; + [SerializeField] private TextMeshProUGUI m_AmountText; [SerializeField] private HyperCasualButton m_BuyButton; [SerializeField] private TextMeshProUGUI m_PlayersListingText; [SerializeField] private GameObject m_Progress; + private Listing m_Listing; private Func> m_OnBuy; - private async void OnEnable() - { - } - /// - /// Cleans up data + /// Clears any displayed listing data when the object is disabled. /// private void OnDisable() { - m_TokenIdText.text = ""; - m_AmountText.text = ""; - + m_TokenIdText.text = string.Empty; + m_PriceText.text = string.Empty; + m_AmountText.text = string.Empty; m_Listing = null; } /// - /// Initialises the UI based on the order + /// Initialises the UI with the given listing details. /// + /// The listing to display. + /// The action to execute when the buy button is pressed. public async void Initialise(Listing listing, Func> onBuy) { m_Listing = listing; m_OnBuy = onBuy; + UpdateData(); - // Check if asset is the player's asset - var address = SaveManager.Instance.WalletAddress; - var isPlayersAsset = m_Listing.Creator == address; + // Check if the asset belongs to the player. + var isPlayersAsset = m_Listing.Creator == SaveManager.Instance.WalletAddress; m_PlayersListingText.gameObject.SetActive(isPlayersAsset); m_BuyButton.gameObject.SetActive(!isPlayersAsset); - // Hide progress + // Hide the progress indicator initially. m_Progress.SetActive(false); - // Set listeners to button + // Ensure button listeners are correctly set. m_BuyButton.RemoveListener(OnBuyButtonClick); m_BuyButton.AddListener(OnBuyButtonClick); } /// - /// Updates the text fields with asset data. + /// Updates the UI text fields with the listing’s token ID, amount, and price details. /// private async void UpdateData() { m_TokenIdText.text = $"Token ID: {m_Listing.TokenId}"; + m_AmountText.text = $"Amount: {m_Listing.Amount}"; - // Price - var amount = m_Listing.PriceDetails.Amount.Value; - var quantity = (decimal)BigInteger.Parse(amount) / (decimal)BigInteger.Pow(10, 18); - m_AmountText.text = $"{quantity} IMR"; + var rawAmount = m_Listing.PriceDetails.Amount.Value; + var quantity = (decimal)BigInteger.Parse(rawAmount) / (decimal)BigInteger.Pow(10, 18); + m_PriceText.text = $"{quantity} IMR"; } /// - /// Handles the buy button click event. + /// Handles the buy button click event by triggering the purchase flow. + /// Displays progress and adjusts UI based on the result. /// private async void OnBuyButtonClick() { @@ -84,4 +89,4 @@ private async void OnBuyButtonClick() m_Progress.SetActive(false); } } -} \ No newline at end of file +} diff --git a/Assets/Shared/Scripts/UI/ListingObject.cs.meta b/Assets/Shared/Scripts/UI/Marketplace/ListingObject.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/ListingObject.cs.meta rename to Assets/Shared/Scripts/UI/Marketplace/ListingObject.cs.meta diff --git a/Assets/Shared/Scripts/UI/OrderDetailsView.cs b/Assets/Shared/Scripts/UI/Marketplace/MarketplaceAssetDetailsView.cs similarity index 95% rename from Assets/Shared/Scripts/UI/OrderDetailsView.cs rename to Assets/Shared/Scripts/UI/Marketplace/MarketplaceAssetDetailsView.cs index ac247aed..ed57da30 100644 --- a/Assets/Shared/Scripts/UI/OrderDetailsView.cs +++ b/Assets/Shared/Scripts/UI/Marketplace/MarketplaceAssetDetailsView.cs @@ -4,19 +4,19 @@ using System.Numerics; using Cysharp.Threading.Tasks; using HyperCasual.Core; +using Immutable.Api.Model; using Immutable.Orderbook.Api; using Immutable.Orderbook.Client; using Immutable.Orderbook.Model; using Immutable.Passport; using Immutable.Passport.Model; -using Immutable.Search.Model; using Newtonsoft.Json; using TMPro; using UnityEngine; namespace HyperCasual.Runner { - public class OrderDetailsView : View + public class MarketplaceAssetDetailsView : View { [SerializeField] private HyperCasualButton m_BackButton; [SerializeField] private BalanceObject m_Balance; @@ -36,16 +36,16 @@ public class OrderDetailsView : View private readonly List m_AttributeViews = new(); private readonly List m_ListingViews = new(); - private readonly OrderbookApi m_TsApi; + private readonly OrderbookApi m_OrderbookApi; private Listing m_Listing; private StackBundle m_Order; - public OrderDetailsView() + public MarketplaceAssetDetailsView() { - var tsConfig = new Configuration(); - tsConfig.BasePath = Config.BASE_URL; - m_TsApi = new OrderbookApi(tsConfig); + var orderbookConfig = new Configuration(); + orderbookConfig.BasePath = Config.BASE_URL; + m_OrderbookApi = new OrderbookApi(orderbookConfig); } private async void OnEnable() @@ -186,7 +186,7 @@ private async UniTask OnBuyButtonClick(Listing listing) takerAddress: SaveManager.Instance.WalletAddress, listingId: listing.ListingId, takerFees: fees); - var createListingResponse = await m_TsApi.FulfillOrderAsync(request); + var createListingResponse = await m_OrderbookApi.FulfillOrderAsync(request); if (createListingResponse.Actions.Count > 0) { diff --git a/Assets/Shared/Scripts/UI/OrderDetailsView.cs.meta b/Assets/Shared/Scripts/UI/Marketplace/MarketplaceAssetDetailsView.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/OrderDetailsView.cs.meta rename to Assets/Shared/Scripts/UI/Marketplace/MarketplaceAssetDetailsView.cs.meta diff --git a/Assets/Shared/Scripts/UI/OrderListObject.cs b/Assets/Shared/Scripts/UI/Marketplace/MarketplaceListObject.cs similarity index 96% rename from Assets/Shared/Scripts/UI/OrderListObject.cs rename to Assets/Shared/Scripts/UI/Marketplace/MarketplaceListObject.cs index 3dde2703..754b2b95 100644 --- a/Assets/Shared/Scripts/UI/OrderListObject.cs +++ b/Assets/Shared/Scripts/UI/Marketplace/MarketplaceListObject.cs @@ -1,6 +1,6 @@ using System.Numerics; using Cysharp.Threading.Tasks; -using Immutable.Search.Model; +using Immutable.Api.Model; using TMPro; using UnityEngine; @@ -9,7 +9,7 @@ namespace HyperCasual.Runner /// /// Represents an individual list item in the marketplace view. /// - public class OrderListObject : MonoBehaviour + public class MarketplaceListObject : MonoBehaviour { [SerializeField] private TextMeshProUGUI m_NameText; [SerializeField] private TextMeshProUGUI m_AmountText; diff --git a/Assets/Shared/Scripts/UI/OrderListObject.cs.meta b/Assets/Shared/Scripts/UI/Marketplace/MarketplaceListObject.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/OrderListObject.cs.meta rename to Assets/Shared/Scripts/UI/Marketplace/MarketplaceListObject.cs.meta diff --git a/Assets/Shared/Scripts/UI/MarketplaceScreen.cs b/Assets/Shared/Scripts/UI/Marketplace/MarketplaceScreen.cs similarity index 90% rename from Assets/Shared/Scripts/UI/MarketplaceScreen.cs rename to Assets/Shared/Scripts/UI/Marketplace/MarketplaceScreen.cs index 52d08bd9..2f6de29d 100644 --- a/Assets/Shared/Scripts/UI/MarketplaceScreen.cs +++ b/Assets/Shared/Scripts/UI/Marketplace/MarketplaceScreen.cs @@ -3,9 +3,9 @@ using Cysharp.Threading.Tasks; using HyperCasual.Core; using Immutable.Passport; -using Immutable.Search.Api; -using Immutable.Search.Client; -using Immutable.Search.Model; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; using Newtonsoft.Json; using TMPro; using UnityEngine; @@ -35,10 +35,12 @@ public class MarketplaceScreen : View [SerializeField] private TMP_Dropdown m_SpeedDropdown; // Infinite scrolling list of stacks - [SerializeField] private InfiniteScrollView m_ScrollView; + [SerializeField] private InfiniteScrollGridView m_ScrollView; // Template for displaying a stack - [SerializeField] private OrderListObject m_StackObj; + [SerializeField] private MarketplaceListObject m_StackObj; + + private StacksApi m_StacksApi; // List to store the loaded stacks private readonly List m_Stacks = new(); @@ -47,6 +49,12 @@ public class MarketplaceScreen : View private bool m_IsLoadingMore; private Page m_Page; + public MarketplaceScreen() + { + var config = new Configuration { BasePath = Config.BASE_URL }; + m_StacksApi = new StacksApi(config); + } + /// /// Resets the marketplace view, clearing the current stacks and resetting pagination. /// @@ -123,7 +131,7 @@ private void OnCreateItemView(int index, GameObject item) var stack = m_Stacks[index]; // Initialise the item view with the stack data - var itemComponent = item.GetComponent(); + var itemComponent = item.GetComponent(); itemComponent.Initialise(stack); // Set up click handling for the item @@ -133,7 +141,7 @@ private void OnCreateItemView(int index, GameObject item) clickable.ClearAllSubscribers(); clickable.OnClick += () => { - var view = UIManager.Instance.GetView(); + var view = UIManager.Instance.GetView(); UIManager.Instance.Show(view); view.Initialise(stack); }; @@ -141,7 +149,7 @@ private void OnCreateItemView(int index, GameObject item) } // Load more stacks if nearing the end of the list - if (index >= m_Stacks.Count - 5 && !m_IsLoadingMore) LoadStacks(); + if (index >= m_Stacks.Count - 8 && !m_IsLoadingMore) LoadStacks(); } /// @@ -173,8 +181,6 @@ private async UniTask> GetStacks() Debug.Log("Fetching stacks..."); var stacks = new List(); - var config = new Configuration { BasePath = Config.BASE_URL }; - var apiInstance = new SearchApi(config); try { @@ -203,11 +209,13 @@ private async UniTask> GetStacks() var trait = filters.Count > 0 ? JsonConvert.SerializeObject(filters) : null; // Fetch stacks from the API - var result = await apiInstance.SearchStacksAsync( + var result = await m_StacksApi.SearchStacksAsync( Config.CHAIN_NAME, new List { Contract.SKIN }, trait: trait, - pageSize: Config.PAGE_SIZE, pageCursor: nextCursor); + onlyIfHasActiveListings: true, + pageSize: Config.PAGE_SIZE, + pageCursor: nextCursor); m_Page = result.Page; return result.Result; diff --git a/Assets/Shared/Scripts/UI/MarketplaceScreen.cs.meta b/Assets/Shared/Scripts/UI/Marketplace/MarketplaceScreen.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/MarketplaceScreen.cs.meta rename to Assets/Shared/Scripts/UI/Marketplace/MarketplaceScreen.cs.meta diff --git a/Assets/Shared/Scripts/UI/Shop.meta b/Assets/Shared/Scripts/UI/Shop.meta new file mode 100644 index 00000000..0030697b --- /dev/null +++ b/Assets/Shared/Scripts/UI/Shop.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 79ba6bd3af3b45a0988910b69ae94ffc +timeCreated: 1728853418 \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/PackDetailsView.cs b/Assets/Shared/Scripts/UI/Shop/PackDetailsView.cs similarity index 94% rename from Assets/Shared/Scripts/UI/PackDetailsView.cs rename to Assets/Shared/Scripts/UI/Shop/PackDetailsView.cs index 8536b8a3..4acb6fad 100644 --- a/Assets/Shared/Scripts/UI/PackDetailsView.cs +++ b/Assets/Shared/Scripts/UI/Shop/PackDetailsView.cs @@ -1,7 +1,6 @@ #nullable enable using System; using System.Collections.Generic; -using System.Linq; using System.Net.Http; using System.Numerics; using System.Text; @@ -69,7 +68,9 @@ public async void Initialise(Pack pack) m_Pack = pack; m_NameText.text = pack.name; m_DescriptionText.text = pack.description; +#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed m_Image.LoadUrl(pack.image); +#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed var quantity = (decimal)BigInteger.Parse(pack.price) / (decimal)BigInteger.Pow(10, 18); m_AmountText.text = $"{quantity} IMR"; @@ -114,7 +115,7 @@ private async void OnBuyButtonClicked() return; } - string responseBody = await response.Content.ReadAsStringAsync(); + var responseBody = await response.Content.ReadAsStringAsync(); var approvalTransaction = JsonUtility.FromJson(responseBody); if (approvalTransaction.data != null) diff --git a/Assets/Shared/Scripts/UI/PackDetailsView.cs.meta b/Assets/Shared/Scripts/UI/Shop/PackDetailsView.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/PackDetailsView.cs.meta rename to Assets/Shared/Scripts/UI/Shop/PackDetailsView.cs.meta diff --git a/Assets/Shared/Scripts/UI/PackItemView.cs b/Assets/Shared/Scripts/UI/Shop/PackItemView.cs similarity index 68% rename from Assets/Shared/Scripts/UI/PackItemView.cs rename to Assets/Shared/Scripts/UI/Shop/PackItemView.cs index 9519c4e0..ca61f13d 100644 --- a/Assets/Shared/Scripts/UI/PackItemView.cs +++ b/Assets/Shared/Scripts/UI/Shop/PackItemView.cs @@ -1,4 +1,3 @@ -using Immutable.Search.Model; using TMPro; using UnityEngine; @@ -17,7 +16,9 @@ public void Initialise(PackItem item) { m_ItemName.text = item.name; m_ItemAmount.text = $"x{item.amount.ToString()}"; +#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed m_ItemImage.LoadUrl(item.image); +#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed } } } \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/PackItemView.cs.meta b/Assets/Shared/Scripts/UI/Shop/PackItemView.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/PackItemView.cs.meta rename to Assets/Shared/Scripts/UI/Shop/PackItemView.cs.meta diff --git a/Assets/Shared/Scripts/UI/PackListObject.cs b/Assets/Shared/Scripts/UI/Shop/ShopListObject.cs similarity index 86% rename from Assets/Shared/Scripts/UI/PackListObject.cs rename to Assets/Shared/Scripts/UI/Shop/ShopListObject.cs index 2733188b..109bd7a8 100644 --- a/Assets/Shared/Scripts/UI/PackListObject.cs +++ b/Assets/Shared/Scripts/UI/Shop/ShopListObject.cs @@ -1,17 +1,12 @@ -using System; -using System.Net.Http; -using System.Numerics; -using Cysharp.Threading.Tasks; using TMPro; using UnityEngine; -using UnityEngine.Serialization; namespace HyperCasual.Runner { /// /// Represents an asset in the player's inventory /// - public class PackListObject : MonoBehaviour + public class ShopListObject : MonoBehaviour { [SerializeField] private TextMeshProUGUI m_NameText; [SerializeField] private TextMeshProUGUI m_DescriptionText; diff --git a/Assets/Shared/Scripts/UI/PackListObject.cs.meta b/Assets/Shared/Scripts/UI/Shop/ShopListObject.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/PackListObject.cs.meta rename to Assets/Shared/Scripts/UI/Shop/ShopListObject.cs.meta diff --git a/Assets/Shared/Scripts/UI/ShopScreen.cs b/Assets/Shared/Scripts/UI/Shop/ShopScreen.cs similarity index 94% rename from Assets/Shared/Scripts/UI/ShopScreen.cs rename to Assets/Shared/Scripts/UI/Shop/ShopScreen.cs index 73076c94..c6c4381e 100644 --- a/Assets/Shared/Scripts/UI/ShopScreen.cs +++ b/Assets/Shared/Scripts/UI/Shop/ShopScreen.cs @@ -7,9 +7,10 @@ using UnityEngine; using Xsolla.Core; using TMPro; -using Immutable.Search.Client; -using Immutable.Search.Model; -using Immutable.Search.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; +using Immutable.Api.Api; +using UnityEngine.Serialization; namespace HyperCasual.Runner { @@ -22,7 +23,7 @@ public class ShopScreen : View [SerializeField] private HyperCasualButton m_AddButton; [SerializeField] private AbstractGameEvent m_BackEvent; [SerializeField] private BalanceObject m_Balance; - [SerializeField] private PackListObject m_PackObj; + [SerializeField] private ShopListObject m_ItemObj; [SerializeField] private Transform m_ListParent; [SerializeField] private InfiniteScrollGridView m_ScrollView; [SerializeField] private AddFunds m_AddFunds; @@ -35,7 +36,7 @@ public class ShopScreen : View private void OnEnable() { // Hide pack template item - m_PackObj.gameObject.SetActive(false); + m_ItemObj.gameObject.SetActive(false); m_BackButton.RemoveListener(OnBackButtonClick); m_BackButton.AddListener(OnBackButtonClick); @@ -64,7 +65,7 @@ private void OnCreateItemView(int index, GameObject item) var pack = m_Packs[index]; // Initialise the view with asset - var itemComponent = item.GetComponent(); + var itemComponent = item.GetComponent(); itemComponent.Initialise(pack); // Set up click listener var clickable = item.GetComponent(); diff --git a/Assets/Shared/Scripts/UI/ShopScreen.cs.meta b/Assets/Shared/Scripts/UI/Shop/ShopScreen.cs.meta similarity index 100% rename from Assets/Shared/Scripts/UI/ShopScreen.cs.meta rename to Assets/Shared/Scripts/UI/Shop/ShopScreen.cs.meta diff --git a/Assets/Unity.Hypercasual.asmdef b/Assets/Unity.Hypercasual.asmdef index 4e9e3fc3..46268d2b 100644 --- a/Assets/Unity.Hypercasual.asmdef +++ b/Assets/Unity.Hypercasual.asmdef @@ -9,12 +9,13 @@ "GUID:b68f5bb197434c84c8a4cc3e45e8408b", "GUID:9fc1342f87877ac42a37b19ac1c6653c", "GUID:f51ebe6a0ceec4240a699833d6309b23", - "GUID:39350674e628e4d2aa1dbede8297dcb0", "GUID:a0996310e1aa34b7fbf14df5d255461d", "GUID:c7a369c5a572d4b6b84cab646212889e", "GUID:95d173a3e67b39d40803000ed05b79f4", "GUID:95a2b1ff23bee4357a10943aba1b014d", - "GUID:7c6688e3b113844aca8431c34874cbad" + "GUID:1d9728650655047939a351b40befbcdb", + "GUID:73ae64c02a64344a180df3fcbaab9f4b", + "GUID:3d531186a1a7b43eeabe8a1cf4003d7f" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index c9e57bdd..11b58ca3 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -23,7 +23,7 @@ "dependencies": { "com.cysharp.unitask": "2.3.3" }, - "hash": "79203ec6a000ded00b84360e4f7ecfdc58d9f42e" + "hash": "01fdea8065a855144ab98514d95f70e8d9a2f74e" }, "com.immutable.passport": { "version": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Passport", diff --git a/mint-backend/src/index.ts b/mint-backend/src/index.ts index 5bea71c3..24488ffc 100644 --- a/mint-backend/src/index.ts +++ b/mint-backend/src/index.ts @@ -133,6 +133,38 @@ router.post('/mint/skin', async (req: Request, res: Response) => { }, ); +router.post('/refresh', async (req: Request, res: Response) => { + try { + if (skinColourContractAddress && privateKey) { + // Get the address to mint the token to + const to: string = req.body.to ?? null; + // Get the quantity to mint if specified, default is one + const tokenId = BigInt(req.body.tokenId ?? '1'); + + // Connect to wallet with minter role + const signer = new Wallet(privateKey).connect(zkEvmProvider); + + // Specify the function to call + const abi = ['function mint(address to, uint256 tokenId)']; + // Connect contract to the signer + const contract = new Contract(skinColourContractAddress, abi, signer); + + // Mints the number of tokens specified + const tx = await contract.mint(to, tokenId, gasOverrides); + await tx.wait(); + + return res.status(200).json({}); + } else { + return res.status(500).json({}); + } + + } catch (error) { + console.log(error); + return res.status(400).json({ message: 'Failed to mint to user' }); + } +}, +); + // In-game ERC20 balance router.get('/balance', async (req: Request, res: Response) => { try {