|
185 | 185 | ],
|
186 | 186 | "properties": {
|
187 | 187 | "amount": {
|
188 |
| - "$ref": "#/definitions/Uint128" |
| 188 | + "$ref": "#/definitions/Uint256" |
189 | 189 | },
|
190 | 190 | "denom": {
|
191 | 191 | "type": "string"
|
|
662 | 662 | }
|
663 | 663 | ]
|
664 | 664 | },
|
665 |
| - "Uint128": { |
666 |
| - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", |
| 665 | + "Uint256": { |
| 666 | + "description": "An implementation of u256 that is using strings for JSON encoding/decoding, such that the full u256 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `new` to create instances out of u128, `from` for other primitive uint types or `from_be_bytes` to provide big endian bytes:\n\n``` # use cosmwasm_std::Uint256; let a = Uint256::new(258u128); let b = Uint256::from(258u16); let c = Uint256::from_be_bytes([ 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 1u8, 2u8, ]); assert_eq!(a, b); assert_eq!(a, c); ```", |
667 | 667 | "type": "string"
|
668 | 668 | },
|
669 | 669 | "Uint64": {
|
|
962 | 962 | ],
|
963 | 963 | "properties": {
|
964 | 964 | "amount": {
|
965 |
| - "$ref": "#/definitions/Uint128" |
| 965 | + "$ref": "#/definitions/Uint256" |
966 | 966 | },
|
967 | 967 | "denom": {
|
968 | 968 | "type": "string"
|
|
978 | 978 | }
|
979 | 979 | ]
|
980 | 980 | },
|
981 |
| - "Uint128": { |
982 |
| - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", |
| 981 | + "Uint256": { |
| 982 | + "description": "An implementation of u256 that is using strings for JSON encoding/decoding, such that the full u256 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `new` to create instances out of u128, `from` for other primitive uint types or `from_be_bytes` to provide big endian bytes:\n\n``` # use cosmwasm_std::Uint256; let a = Uint256::new(258u128); let b = Uint256::from(258u16); let c = Uint256::from_be_bytes([ 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 1u8, 2u8, ]); assert_eq!(a, b); assert_eq!(a, c); ```", |
983 | 983 | "type": "string"
|
984 | 984 | },
|
985 | 985 | "Uint64": {
|
|
1062 | 1062 | ],
|
1063 | 1063 | "properties": {
|
1064 | 1064 | "amount": {
|
1065 |
| - "$ref": "#/definitions/Uint128" |
| 1065 | + "$ref": "#/definitions/Uint256" |
1066 | 1066 | },
|
1067 | 1067 | "denom": {
|
1068 | 1068 | "type": "string"
|
|
1078 | 1078 | }
|
1079 | 1079 | ]
|
1080 | 1080 | },
|
1081 |
| - "Uint128": { |
1082 |
| - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", |
| 1081 | + "Uint256": { |
| 1082 | + "description": "An implementation of u256 that is using strings for JSON encoding/decoding, such that the full u256 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `new` to create instances out of u128, `from` for other primitive uint types or `from_be_bytes` to provide big endian bytes:\n\n``` # use cosmwasm_std::Uint256; let a = Uint256::new(258u128); let b = Uint256::from(258u16); let c = Uint256::from_be_bytes([ 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 1u8, 2u8, ]); assert_eq!(a, b); assert_eq!(a, c); ```", |
1083 | 1083 | "type": "string"
|
1084 | 1084 | },
|
1085 | 1085 | "Uint64": {
|
|
0 commit comments